<?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>Master Site Manager SEO Ranking Software &#187; Redirect Url</title>
	<atom:link href="http://www.mastersitemanager.com/tag/redirect-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mastersitemanager.com</link>
	<description>Save hours tracking your SEO stats with Master Site Manager SEO tracking software</description>
	<lastBuildDate>Fri, 03 Sep 2010 18:01:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<image>
<link>http://www.mastersitemanager.com</link>
<url>http://www.mastersitemanager.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Master Site Manager SEO Ranking Software</title>
</image>
		<item>
		<title>Adding a trailing slash to requested URLs</title>
		<link>http://www.mastersitemanager.com/868/868/</link>
		<comments>http://www.mastersitemanager.com/868/868/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 22:01:56 +0000</pubDate>
		<dc:creator>SEO Stats Tracking</dc:creator>
				<category><![CDATA[SEO News & Tips]]></category>
		<category><![CDATA[Content Problems]]></category>
		<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[Mod Rewrite]]></category>
		<category><![CDATA[Page Content]]></category>
		<category><![CDATA[Redirect Url]]></category>
		<category><![CDATA[Request Uri]]></category>
		<category><![CDATA[Rewrite Rule]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://www.mastersitemanager.com/868/868/</guid>
		<description><![CDATA[Here&#8217;s the problem: Some search engines remove the trailing slash from urls that look like directories &#8211; e.g. Yahoo does it for example. However, you might find that this could result into duplicated content problems when the same page content is accessible under different urls. And clearly you don&#8217;t want that. But if you&#8217;re using [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Here&#8217;s the problem:</strong></p>
<p>Some search engines remove the trailing slash from urls that look like directories &#8211; e.g. Yahoo does it for example.</p>
<p>However, you might find that this could result into duplicated content problems when the same page content is accessible under different urls.</p>
<p>And clearly you don&#8217;t want that.</p>
<p>But if you&#8217;re using Apache on your web server, there&#8217;s a simple solution.</p>
<p>Let&#8217;s have a look at an example: enarion.net/google/ is indexed in Yahoo as enarion.net/google &#8211; which would result in two urls with the same content.</p>
<p><strong>Solution:</strong></p>
<p>The solution is to create a .htaccess rewrite rule that adds the trailing slashes to these urls. Example &#8211; redirect all urls that do not have a trailing slash to urls with a trailing slash:</p>
<p style="padding-left: 30px;">RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_URI} !example.php<br />
RewriteCond %{REQUEST_URI} !(.*)/$<br />
RewriteRule ^(.*)$ http://domain.com/$1/ [L,R=301]</p>
<p>Explanation of the add trailing slash .htaccess rewrite rule:</p>
<p>The first line tells Apache that this is code for the rewrite engine of the mod_rewrite module of Apache. The 2nd line sets the current directory as page root. But the interesting part is:</p>
<p>RewriteCond %{REQUEST_FILENAME} !-f</p>
<p>makes sure that existing files will not get a slash added. You shouldn&#8217;t do the same with directories since this would exlude the rewrite behaviour for existing directories. The line</p>
<p>RewriteCond %{REQUEST_URI} !example.php</p>
<p>exludes a sample url that should not be rewritten. This is just an example. If you do not have a file or url that should not be rewritten, remove this line. The condition:</p>
<p>RewriteCond %{REQUEST_URI} !(.*)/$</p>
<p>and finally fires when a url does not contain a trailing slash.</p>
<p>Now we need to redirect the urls without the trailing slash: pre&gt; RewriteRule ^(.*)$ http://domain.com/$1/ [L,R=301] does the 301 redirect to the url, with the trailing slash appended.</p>
<p>You should replace domain.com with your url. Make sure that you stick with the right domain name; if unsure, have a look at this article.</p>
<p>Pretty cool, eh?</p>
<p>This article was referenced with gratitude from enarion.net.</p>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs&amp;bodytext=Here%27s%20the%20problem%3A%0D%0A%0D%0ASome%20search%20engines%20remove%20the%20trailing%20slash%20from%20urls%20that%20look%20like%20directories%20-%20e.g.%20Yahoo%20does%20it%20for%20example.%0D%0A%0D%0AHowever%2C%20you%20might%20find%20that%20this%20could%20result%20into%20duplicated%20content%20problems%20when%20the%20same%20page%20content%20" title="Digg"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs&amp;notes=Here%27s%20the%20problem%3A%0D%0A%0D%0ASome%20search%20engines%20remove%20the%20trailing%20slash%20from%20urls%20that%20look%20like%20directories%20-%20e.g.%20Yahoo%20does%20it%20for%20example.%0D%0A%0D%0AHowever%2C%20you%20might%20find%20that%20this%20could%20result%20into%20duplicated%20content%20problems%20when%20the%20same%20page%20content%20" title="del.icio.us"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;t=Adding%20a%20trailing%20slash%20to%20requested%20URLs" title="Facebook"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;h=Adding%20a%20trailing%20slash%20to%20requested%20URLs" title="NewsVine"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs" title="Reddit"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs" title="StumbleUpon"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs&amp;annotation=Here%27s%20the%20problem%3A%0D%0A%0D%0ASome%20search%20engines%20remove%20the%20trailing%20slash%20from%20urls%20that%20look%20like%20directories%20-%20e.g.%20Yahoo%20does%20it%20for%20example.%0D%0A%0D%0AHowever%2C%20you%20might%20find%20that%20this%20could%20result%20into%20duplicated%20content%20problems%20when%20the%20same%20page%20content%20" title="Google Bookmarks"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;submitHeadline=Adding%20a%20trailing%20slash%20to%20requested%20URLs&amp;submitSummary=Here%27s%20the%20problem%3A%0D%0A%0D%0ASome%20search%20engines%20remove%20the%20trailing%20slash%20from%20urls%20that%20look%20like%20directories%20-%20e.g.%20Yahoo%20does%20it%20for%20example.%0D%0A%0D%0AHowever%2C%20you%20might%20find%20that%20this%20could%20result%20into%20duplicated%20content%20problems%20when%20the%20same%20page%20content%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Adding%20a%20trailing%20slash%20to%20requested%20URLs%20-%20http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F" title="Twitter"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F" title="Technorati"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs" title="Live"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;title=Adding%20a%20trailing%20slash%20to%20requested%20URLs&amp;source=Master+Site+Manager+SEO+Ranking+Software+Save+hours+tracking+your+SEO+stats+with+Master+Site+Manager+SEO+tracking+software&amp;summary=Here%27s%20the%20problem%3A%0D%0A%0D%0ASome%20search%20engines%20remove%20the%20trailing%20slash%20from%20urls%20that%20look%20like%20directories%20-%20e.g.%20Yahoo%20does%20it%20for%20example.%0D%0A%0D%0AHowever%2C%20you%20might%20find%20that%20this%20could%20result%20into%20duplicated%20content%20problems%20when%20the%20same%20page%20content%20" title="LinkedIn"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;t=Adding%20a%20trailing%20slash%20to%20requested%20URLs" title="MySpace"><img src="http://www.mastersitemanager.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
</ul>
</div>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.mastersitemanager.com%2F868%2F868%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;margin-top:5px;"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.mastersitemanager.com/868/868/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
