<?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>Leosquarez - Website Design and Development &#187; htaccess</title>
	<atom:link href="http://www.leosquarez.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leosquarez.com</link>
	<description>Website Design and Development</description>
	<lastBuildDate>Wed, 17 Aug 2011 03:59:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Redirect 301 htaccess – Moving a page, directory or domain</title>
		<link>http://www.leosquarez.com/redirect-301-htaccess-moving-page-directory-or-domain/</link>
		<comments>http://www.leosquarez.com/redirect-301-htaccess-moving-page-directory-or-domain/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 03:51:25 +0000</pubDate>
		<dc:creator>leosquarez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.leosquarez.com/?p=85</guid>
		<description><![CDATA[If you are going to change the name or move the location of some pages or directories, it is very important to remember that some users will still try to access the old link/url.
To make sure the users will not land at a 404 error page you need to redirect them to the new link/url.
In [...]]]></description>
			<content:encoded><![CDATA[<p>If you are going to change the name or move the location of some pages or directories, it is very important to remember that some users will still try to access the old link/url.</p>
<p>To make sure the users will not land at a 404 error page you need to redirect them to the new link/url.</p>
<p>In html or php websites you can redirect users from one url to another using the 301 redirect technique.</p>
<p>The 301 redirect needs be to added on the .htaccess file as follows:</p>
<blockquote><p><strong>#Moving a page</strong><br />
RedirectPermanent /old-page-name.html  http://www.new-domain.com/new-directory/new-page-name.html</p></blockquote>
<blockquote><p><strong>#Moving a directory</strong><br />
RedirectPermanent /old-directory http://www.new-domain.com/new-directory<br />
# the name /old-directory is all the path of the directory after the domain:<br />
# for example if your old path was www.domain.com/directory/old-sub-directory and you want change the subdirectory your code will be like:</p>
<p>RedirectPermanent /directory/old-sub-directory http://www.new-domain.com/directory/new-sub-directory</p></blockquote>
<blockquote><p><strong>#Moving an entire site</strong><br />
RedirectPermanent / http://www.new-domain.com/</p></blockquote>
<p><a href="http://www.leosquarez.com/wp-content/uploads/2010/04/1270093585_stock_folder-move.png"><img class="alignnone size-full wp-image-86" title="1270093585_stock_folder-move" src="http://www.leosquarez.com/wp-content/uploads/2010/04/1270093585_stock_folder-move.png" alt="1270093585_stock_folder-move" width="256" height="256" /></a></p>
<img src="http://www.leosquarez.com/?ak_action=api_record_view&id=85&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.leosquarez.com/redirect-301-htaccess-moving-page-directory-or-domain/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

