<?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>wpyag.com &#187; redirection</title>
	<atom:link href="http://www.wpyag.com/tag/redirection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpyag.com</link>
	<description>Free and Premium WordPress Themes</description>
	<lastBuildDate>Tue, 01 Nov 2011 13:23:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>301 redirection in WordPress</title>
		<link>http://www.wpyag.com/wordpress-tips-and-tricks/301-redirection-in-wordpress/</link>
		<comments>http://www.wpyag.com/wordpress-tips-and-tricks/301-redirection-in-wordpress/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:46:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress Tips and Tricks]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[redirection]]></category>

		<guid isPermaLink="false">http://www.wpyag.com/?p=311</guid>
		<description><![CDATA[You will need to add 301 redirection if your change url of your WordPress site. 301 redirection will redirect all the posts from old url to new url. 301 redirection also tells search engine about change of address. Let&#8217;s say [..]]]></description>
			<content:encoded><![CDATA[<p>You will need to add <strong>301 redirection</strong> if your change url of your WordPress site. 301 redirection will redirect all the posts from old url to new url. 301 redirection also tells search engine about change of address.<br />
<span id="more-311"></span><br />
<a href="http://www.wpyag.com/wp-content/uploads/2010/02/wordpress-301-redirect.jpg" rel="prettyPhoto[gallery2]"><img src="http://www.wpyag.com/wp-content/uploads/2010/02/wordpress-301-redirect.jpg" alt="" title="wordpress-301-redirect" width="200" height="200" class="aligncenter size-full wp-image-755" /></a><br />
Let&#8217;s say the old url was olddomain.com and new url is newdomain.com<br />
Now you want to add 301 redirection in oldoamin.com<br />
<strong>Follow below steps to add 301 redirection.</strong><br />
1) create a text file and name it as htaccess.txt<br />
2) Add following codes in htaccess.txt</p>
<pre>
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
</pre>
<div class="note">Note: change newdomain.com to your site new address.</p>
<p></div>
<p>3) Upload htaccess.txt file in wordpress installed directory i.e in public_html of olddomain.com and rename it as .htaccess<br />
Done !!!</p>
<p><strong>Few Conditions to clear doubts:</strong><br />
1) if old wordpress url is olddomain.com/blog than, upload .htacess file to public_html/blog</p>
<p>2) If new WordPress url is newdomain.com/blog, change newdomain.com to newdomain.com/blog in htaccess.txt</p>
<p><strong>WordPress Plugins for 301 redirection</strong><br />
There are few WordPress plugins also for 301 redirection, but its better to just add a .htaccess file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpyag.com/wordpress-tips-and-tricks/301-redirection-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

