<?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>Some PHP &#124; Wordpress Tips &#187; Web design/Coding</title>
	<atom:link href="http://worth2read.org/blog/category/web-designcoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://worth2read.org/blog</link>
	<description>Wordpress &#124; PHP Tips</description>
	<lastBuildDate>Tue, 20 Jul 2010 14:31:27 +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>Using 301 Redirect To Redirect A Webpage</title>
		<link>http://worth2read.org/blog/2009/07/31/using-301-redirect-to-redirect-a-webpage/</link>
		<comments>http://worth2read.org/blog/2009/07/31/using-301-redirect-to-redirect-a-webpage/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 01:37:22 +0000</pubDate>
		<dc:creator>Gisha James</dc:creator>
				<category><![CDATA[Web design/Coding]]></category>
		<category><![CDATA[Using 301 Redirect To Redirect A Webpage]]></category>
		<category><![CDATA[Website design]]></category>

		<guid isPermaLink="false">http://worth2read.org/blog/?p=64</guid>
		<description><![CDATA[When I hosted the site, the pages were html files. Later to add more functionality I converted them to php files. But search engines have already indexed those .html files. So when a visitor comes after a search in Google, the &#8216; File Not Found&#8217; error is displayed. We can avoid this using 301 redirect. <a href='http://worth2read.org/blog/2009/07/31/using-301-redirect-to-redirect-a-webpage/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F07%2F31%2Fusing-301-redirect-to-redirect-a-webpage%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fworth2read.org%2Fblog%2F2009%2F07%2F31%2Fusing-301-redirect-to-redirect-a-webpage%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>When I hosted the site, the pages were html files. Later to add more functionality I converted them to php files.</p>
<p>But search engines have already indexed those .html files. So when a visitor comes after a search in Google, the &#8216; File Not Found&#8217; error is displayed.</p>
<p>We can avoid this using 301 redirect.</p>
<p>.htaccess file<br />
When a visitor searches for a webpage, the webserver looks for .htaccess file. This file contains information about redirection, security etc.</p>
<p>If your server already has this file always update it rather than replacing it with a new file.</p>
<p>If the server does not have the .htaccess file open a .txt file and save it as .htaccess file. </p>
<p>Redirect a webpage using 301 Redirect<br />
Example : </p>
<p>redirect 301 /Kids.html http://www.worth2read.org/kids.php </p>
<p>Edit the .htaccess file or open notepad, add redirect 301 statement, save it as .htaccess file. </p>
<p>The search engines won&#8217;t read the .htaccess file, but follow the rules that are created in .htaccess.</p>
<p>We can test this by typing the old URL, for example www.worth2read.org/kids.html</p>
<p>Actually this file is not in the server. Instead kids.php is there. </p>
<p>When Google updates it next time, the new file name will replace the old file.</p>
]]></content:encoded>
			<wfw:commentRss>http://worth2read.org/blog/2009/07/31/using-301-redirect-to-redirect-a-webpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
