<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>solutions.hans-eric.com &#187; WordPress</title>
	<atom:link href="http://solutions.hans-eric.com/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://solutions.hans-eric.com</link>
	<description>Hans-Eric Grönlund's Log of Solutions to Technical Problems</description>
	<lastBuildDate>Fri, 23 Apr 2010 07:39:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrading a Customized Wordpress Theme</title>
		<link>http://solutions.hans-eric.com/upgrading-a-customized-wordpress-theme</link>
		<comments>http://solutions.hans-eric.com/upgrading-a-customized-wordpress-theme#comments</comments>
		<pubDate>Fri, 13 Nov 2009 15:51:19 +0000</pubDate>
		<dc:creator>Hans-Eric</dc:creator>
				<category><![CDATA[SubVersion]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://solutions.hans-eric.com/?p=30</guid>
		<description><![CDATA[Problem:
You&#8217;re using a third party wordpress theme but have made changes to customize it for your own needs (changed a picture, added advertising, etc.). When the third party releases an upgrade to the theme you&#8217;d like to upgrade but don&#8217;t want to lose your changes.
Solution:
Let your version management system move your changes over to the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>You&#8217;re using a third party wordpress theme but have made changes to customize it for your own needs (changed a picture, added advertising, etc.). When the third party releases an upgrade to the theme you&#8217;d like to upgrade but don&#8217;t want to lose your changes.</p>
<p><strong>Solution:</strong></p>
<p>Let your version management system move your changes over to the new version for you. I use Subversion, but any modern VMS should do fine as well. Here&#8217;s the steps I use to upgrade from, let&#8217;s say Cool Theme 1.0 (that contain my changes) to Cool Theme 1.1.</p>
<ol>
<li>Import the original version of Cool Theme 1.0 (without my changes) to Subversion. I use a repository path like /reposroot/cooltheme/trunk.</li>
<li>Create a tag to freeze the 1.0-version. In Subversion you just copy the above directory, I name the new directory something like /reposroot/cooltheme/tags/1_0.</li>
<li>Create a branch from the 1_0 tag. I&#8217;d name the branch /reposroot/cooltheme/branches/r1_0.</li>
<li>Checkout the r1_0 branch to a local working directory.</li>
<li>Copy the files of the updated version of Cool Theme, the one that contain your changes, to your working directory.</li>
<li>Check in. Now you have the current version in the r1_0 branch.</li>
<li>Delete the working copy if you like, it has served it&#8217;s purpose and the time has come for the actual upgrade.</li>
<li>Checkout the trunk branch (reposroot/cooltheme/trunk in my example) to a working directory.</li>
<li>Copy the files of the upgraded theme to the working directory.</li>
<li>Check in the changes.</li>
<li>Once again, delete the working copy if you wish.</li>
<li>Create a tag for the new version (reposroot/cooltheme/tags/1_1 for example).</li>
<li>Create a branch for the new release (copy the 1_1 tag to reposroot/cooltheme/branches/r1_1)</li>
<li>Merge the changes between r1_0 and r1_1</li>
<li>Handle conflicts</li>
<li>Check in.</li>
<li>Voila! You should now have an upgraded version with your changes in the new release branch (reposroot/cooltheme/branches/r1_1)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://solutions.hans-eric.com/upgrading-a-customized-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect Pages in Wordpress</title>
		<link>http://solutions.hans-eric.com/redirect-pages-in-wordpress</link>
		<comments>http://solutions.hans-eric.com/redirect-pages-in-wordpress#comments</comments>
		<pubDate>Tue, 09 Jun 2009 11:18:17 +0000</pubDate>
		<dc:creator>Hans-Eric</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Move Pages]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://solutions.hans-eric.com/?p=5</guid>
		<description><![CDATA[Problem
I want to move a page in a WordPress site to a different location, but I still want the old address to be active and instead redirect to the new address.
Solution
Unfortunatelly as per WordPress 2.7 there isn&#8217;t any standard functionallity to accomplish this, so the easiest way to go is to use plugins.
I use Paul [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem</h4>
<p>I want to move a page in a WordPress site to a different location, but I still want the old address to be active and instead redirect to the new address.</p>
<h4>Solution</h4>
<p>Unfortunatelly as per WordPress 2.7 there isn&#8217;t any standard functionallity to accomplish this, so the easiest way to go is to use plugins.</p>
<p>I use <a href="http://wordpress.org/extend/plugins/easyredirect/">Paul Bains EasyRedirect</a> which works for WordPress 2.7 although the description states &#8220;compatible up to: 2.2.0&#8243;. Just install it and add a tag of the form [redirect url time] to your redirecting page.</p>
<p>And we have to make sure the redirecting page is not showing up in the automatically generated page menu. I use &lt;a href=&#8221;http://wordpress.org/extend/plugins/exclude-pages/&#8221;&gt;Simon Wheatley&#8217;s Exclude Pages plugin&lt;/a&gt; for this. This excellent piece of code adds a check box named &#8220;Include this page in user menus&#8221; to your page administration page. Very convenient.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.hans-eric.com/redirect-pages-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force a www Prefix</title>
		<link>http://solutions.hans-eric.com/force-a-www-prefix</link>
		<comments>http://solutions.hans-eric.com/force-a-www-prefix#comments</comments>
		<pubDate>Tue, 09 Jun 2009 09:07:21 +0000</pubDate>
		<dc:creator>Hans-Eric</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://solutions.hans-eric.com/?p=3</guid>
		<description><![CDATA[Problem:
You want to force the World Wide Web prefix of your domain name, even though a page was requested without it. For example, if you would like all requests to http://hans-eric.com be redirected to http://www.hans-eric.com
Solution:
Solution from Alister Cameron. It works for Linux/Unix and requires .htaccess file access.
In the web root directory .htaccess file, add the [...]]]></description>
			<content:encoded><![CDATA[<h4>Problem:</h4>
<p>You want to force the World Wide Web prefix of your domain name, even though a page was requested without it. For example, if you would like all requests to http://hans-eric.com be redirected to http://www.hans-eric.com</p>
<h4>Solution:</h4>
<p>Solution from <a title="Two WordPress Plugins You Don't Need And Shouldn't Use" href="http://www.alistercameron.com/2007/01/12/two-wordpress-plugins-you-dont-need-and-shouldnt-use/">Alister Cameron</a>. It works for Linux/Unix and requires .htaccess file access.<br />
In the web root directory .htaccess file, add the following:</p>
<pre>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.alistercameron.com$ [NC]
RewriteRule ^(.*)$ http://www.alistercameron.com/$1 [R=301,L]RewriteCond %{REQUEST_URI} ^/[^.]+[^/]$

RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
&lt;/IfModule&gt;</pre>
<p>If you are using <a title="WordPress - The WebLog Engine" href="http://wordpress.org/">WordPress</a>, those rules should come before the standard WordPress rules.</p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.hans-eric.com/force-a-www-prefix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
