<?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>me.reflect() &#124; java,jee,ruby on rails,php,perl,life &#187; wordpress</title>
	<atom:link href="http://www.rajeshpg.com/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rajeshpg.com/blog</link>
	<description>to innovate,to leverage, to elevate</description>
	<lastBuildDate>Sun, 30 Aug 2009 18:30:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>move wordpress blog from root to subdirectory</title>
		<link>http://www.rajeshpg.com/blog/2009/06/move-wordpress-blog-from-root-to-subdirectory/</link>
		<comments>http://www.rajeshpg.com/blog/2009/06/move-wordpress-blog-from-root-to-subdirectory/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 14:26:47 +0000</pubDate>
		<dc:creator>Rajesh</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[move to roor]]></category>
		<category><![CDATA[move wordpress]]></category>

		<guid isPermaLink="false">http://www.rajeshpg.com/blog/?p=109</guid>
		<description><![CDATA[am quite sure you will get a lot of tutorials for this topic try this http://www.google.co.in/search?q=move+wordpress+blog+from+root+to+subdirectory but that didn solve one particular problem,  redirecting the old url to new url. earlier i had my blog in the root directory on my domain http://www.rajeshpg.com.i moved my blog to a subdirectory http://www.rajeshpg.com/blog.i reinstalled wordpress in the subdirectory,and [...]]]></description>
			<content:encoded><![CDATA[<p>am quite sure you will get a lot of tutorials for this topic</p>
<p>try this <a title="http://www.google.co.in/search?q=move+wordpress+blog+from+root+to+subdirectory" href="http://www.google.co.in/search?q=move+wordpress+blog+from+root+to+subdirectory" target="_blank">http://www.google.co.in/search?q=move+wordpress+blog+from+root+to+subdirectory</a></p>
<p>but that didn solve one particular problem,  redirecting the old url to new url.</p>
<p><span id="more-109"></span>earlier i had my blog in the root directory on my domain <a title="http://www.rajeshpg.com" href="http://www.rajeshpg.com" target="_blank">http://www.rajeshpg.com</a>.i moved my blog to a subdirectory <a title="http://www.rajeshpg.com/blog" href="http://www.rajeshpg.com/blog" target="_blank">http://www.rajeshpg.com/blog</a>.i reinstalled wordpress in the subdirectory,and import my earlier posts.</p>
<p>The problem is that the old url for a post (probably indexed by google) should be redirected to new url.</p>
<p>example:- http://www.rajeshpg.com/2007/01/javaxservletservletexception-path-loginlayout-does-not-start-with-a-character/ should be redirected to http://www.rajeshpg.com/<strong>blog</strong>/2007/01/javaxservletservletexception-path-loginlayout-does-not-start-with-a-character/</p>
<p>After googling for an hour i got the solution.</p>
<p>modify your .htaccess file(or create one) in the root directory with this code.</p>
<p><code>RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^(\d*)/(\d*)/(.*)$ http://yourdomainname.com/blog/$1/$2/$3 [L,R=301]<br />
</code><br />
(\d*) represents a sequence of numbers.<br />
(.*) represents sequence of characters.</p>
<p>note:- this solution works only for the urls of /year/month/title pattern of wordpress blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rajeshpg.com/blog/2009/06/move-wordpress-blog-from-root-to-subdirectory/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
