<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Forum posts to 'Extending and hacking'</title>
		<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/</link>
		

		
		<item>
			<title>Re: SEO Optimisation: 301 redirects, non-trailing slashes and /home</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326?showPost=68720</link>
			<description>That's great Tatey, was exactly what I needed.&lt;br /&gt;&lt;br /&gt;I have a suggestion:&lt;br /&gt;&lt;br /&gt;Change:&lt;br /&gt;RewriteCond %{HTTP_HOST} ^domain\.com.\au [NC]&lt;br /&gt;&lt;br /&gt;to:&lt;br /&gt;RewriteCond %{HTTP_HOST} ^domain\.com.\au$ [NC]&lt;br /&gt;&lt;br /&gt;This way you will then capture domain.com.au/somepage/ which will rewrite with the www.&lt;br /&gt;&lt;br /&gt;.. and you may wish to change this line also to include other common file types otherwise these files won't be found due to the rewrite adding a / at the end.&lt;br /&gt;&lt;br /&gt;Change:&lt;br /&gt;RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$&lt;br /&gt;&lt;br /&gt;to:&lt;br /&gt;RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)|(\.flv)|(\.swf)|(\.html)|(\.htm)$&lt;br /&gt;&lt;br /&gt;Or simply make is include any other file types you need to be detected.&lt;br&gt;&lt;br&gt;Posted to: SEO Optimisation: 301 redirects, non-trailing slashes and /home</description>
			<pubDate>Fri, 09 May 2008 12:17:13 +1200</pubDate>
			<author>Scott Buckland</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326?showPost=68720</guid>
		</item>
		
		<item>
			<title>Re: SEO Optimisation: 301 redirects, non-trailing slashes and /home</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326?showPost=54390</link>
			<description>If you're using -rc2 it's a known bug and not your modifications fault.&lt;br&gt;&lt;br&gt;Posted to: SEO Optimisation: 301 redirects, non-trailing slashes and /home</description>
			<pubDate>Wed, 09 Apr 2008 16:09:40 +1200</pubDate>
			<author>Liam </author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326?showPost=54390</guid>
		</item>
		
		<item>
			<title>Re: SEO Optimisation: 301 redirects, non-trailing slashes and /home</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326?showPost=54374</link>
			<description>Discovered a problem where files could not be uploaded using the &quot;Files &amp;amp; Images&quot; section of the CMS. I've modified the rewrite rules to exclude /admin. The &quot;pastie&quot; in my previous post has already been updated.&lt;br&gt;&lt;br&gt;Posted to: SEO Optimisation: 301 redirects, non-trailing slashes and /home</description>
			<pubDate>Wed, 09 Apr 2008 15:16:00 +1200</pubDate>
			<author>Tate Johnson</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326?showPost=54374</guid>
		</item>
		
		<item>
			<title>SEO Optimisation: 301 redirects, non-trailing slashes and /home</title>
			<link>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326</link>
			<description>In the recent months, Fabie and I have been seeking for an unobtrusive mechanism to further optimise SilverStripe based installations for search engines.&lt;br /&gt;&lt;br /&gt;That is, pages with a trailing slash and pages without a trailing slash are accessible to search engine crawlers. While this isn't necessarily an issue for humans, it essentially creates two independent pages with identical content; resulting in various negative implications for search engines.&lt;br /&gt;&lt;br /&gt;The phenomena is known as [url=http://www.mattcutts.com/blog/seo-advice-url-canonicalization/]Canonical URLs[/url].&lt;br /&gt;&lt;br /&gt;Fortunately, a developer from Fontis IT consulting and T3hDuk have been able to formulate a suitable work-around that takes advantage of Apache's mod_rewrite functionality. That is, it doesn't touch the Sapphire core at all!&lt;br /&gt;&lt;br /&gt;I thought it would be appropriate to share with everyone, in case other developers feel that they are in a similar position to me.&lt;br /&gt;&lt;br /&gt;* Adds a trailing slash to URLs without a trailing slash&lt;br /&gt;* Capability to redirect requests without the WWW to include the WWW&lt;br /&gt;* Correct the /home 302 redirect&lt;br /&gt;* All redirects are 301&lt;br /&gt;&lt;br /&gt;http://pastie.caboo.se/177666&lt;br&gt;&lt;br&gt;Posted to: SEO Optimisation: 301 redirects, non-trailing slashes and /home</description>
			<pubDate>Mon, 07 Apr 2008 17:30:21 +1200</pubDate>
			<author>Tate Johnson</author>
			<guid>http://www.silverstripe.com/extending-hacking-silverstripe-forum/show/53326</guid>
		</item>
		

	</channel>
</rss>
