<?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>dKaiser &#187; WordPress</title>
	<atom:link href="http://www.dkaiser.com/blog/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dkaiser.com/blog</link>
	<description>- Experiments with Clouds</description>
	<lastBuildDate>Mon, 30 Jan 2012 20:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Pretty WordPress links</title>
		<link>http://www.dkaiser.com/blog/pretty-wordpress-links?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pretty-wordpress-links</link>
		<comments>http://www.dkaiser.com/blog/pretty-wordpress-links#comments</comments>
		<pubDate>Wed, 25 Nov 2009 14:33:32 +0000</pubDate>
		<dc:creator>Pauli Haikonen</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.dkaiser.com/blog/?p=99</guid>
		<description><![CDATA[TweetThis post is not really about cloud computing, but someone might find the information useful, I believe. Being a newbie with blogging and WP, I made an annoying mistake when I initially created my blog. I set the permalinks to be the default (it’s usually the best, right?) which means the link to a post [...]]]></description>
			<content:encoded><![CDATA[<div class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fpretty-wordpress-links&amp;text=Pretty%20WordPress%20links&amp;related=&amp;lang=en&amp;count=&amp;counturl=http%3A%2F%2Fwww.dkaiser.com%2Fblog%2Fpretty-wordpress-links" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://www.dkaiser.com/blog/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>This post is not really about cloud computing, but someone might find the information useful, I believe.</p>
<p>Being a newbie with blogging and WP, I made an annoying mistake when I initially created my blog. I set the permalinks to be the default (it’s usually the best, right?) which means the link to a post would be something like <a href="http://www.example.com/blog/?=p123">http://www.example.com/blog/?=p123</a> while  a nicer link would be something like <a href="http://www.example.com/blog/cloud-computing-is-great">http://www.example.com/blog/cloud-computing-is-great</a> which clearly gives a reader some indication of what is the post name and what it is about. Search engines are really not too interested with those “?” etc. weird characters either. I realized this when I had subscribed to a few RSS feeds which clearly did not have any posts without a pretty link and my blog would not show up in Google Blog search as I had the original feed in a form <a href="http://www.dkaiser.com/?=feed2">http://www.dkaiser.com/?=feed2</a> or roughly similar.</p>
<p>Ok, onwards with the project! I had about eight posts and not really too much visitors either, so I could easily change the permalink structure, right? There is an option in the WP admin panel to do this. I wasn’t too worried about possible broken external links to my blog, since I bet there is no fan club for this site… I changed the permalink structure from default to custom with /%postname% as the new permalink. There was a notification to modify the .htaccess file since WP could not write the file itself. So I started looking into that, actually there wasn’t any .htaccess file in place, probably because of the default installation. I really did not bother to start searching on how to write it myself, so I decided to change the folder permissions in the /blog folder instead. Eventually, the .htaccess file was created.</p>
<p>Hitting refresh in the browser for the blog now gave all new links to every tag, page, post, you name it. A few of them actually worked, like the pages and categories, but the most important &#8211; the posts – were stuck in a redirect loop. Apache was trying to redirect all posts to the root of the blog. Which was weird, but probably easily understood by a person who knows about mod_rewrite and regular expressions. My knowledge of theoretical computer science with regards to regexps is a bit rusty to say the least. Luckily, there are a few nice people who know about it (I presume), since there are a few WP plugins which you can use to redirect the pages. I went ahead with Dean Lee’s <a href="http://www.deanlee.cn/wordpress/permalinks-migration-plugin/">Permalinks Migration Plugin</a>. There are instructions on how to use the tool, but sadly, the first few tries did not really work. I was messing up the old and new structure and I also found one issue from my httpd.conf as it did have “allowoverwrite none” defined. I proceeded as follows:</p>
<ol>
<li> Set “allowoverwrite all”</li>
<li>Restart Apache</li>
<li>Setting / to be the old structure in Permalinks migration tool, clicking update</li>
<li>Going in Permalinks and setting /%postname% to be the new structure, clicking update</li>
<li>Going back to Permalinks migration tool and clicking update</li>
</ol>
<p>This is how I fixed my problem, but I really recommend all to create a pretty link structure before you start blogging. I am not guaranteeing the information here will fix your problem, but test your settings before going live. That’s what I did and of course in Amazon EC2!</p>
<p>Pauli Haikonen</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dkaiser.com/blog/pretty-wordpress-links/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

