Hi All,
This is my first post at Webmaster World and based on your reputation, I'm excited to receive some feedback.
For SEO purposes I want all versions of my URL <www vs http version vs /index.html etc) at my website to refer to a single canonical URL.
Specifically I'm trying to figure out how to do a mod_rewrite that 301 redirects all versions of the same URL to the http://example.com version. Similarly, I'm trying to figure out an .htaccess rule that makes any version of any page on my site also 301 back to the http://example.com/page.html version.
I'm quite new to this and the only solution I've found thus far is writing 301 redirects for each version of each page that I want to redirect. The problem with this is that it is extremely cumbersome with regard to creating new pages. Who wants to have to modify the .htaccess file each and every time they create a new page right?
I'm hoping you can help me with this as I'm sure you've dealt with this issue before. I'm really looking forward to receiving some feedback on this.
Many Thanks.