View Single Post
  #14 (permalink)  
Old 01-18-2008, 12:19 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
Question Re: Canonicalization Prevention Guide

Hi wige

After I add:

RewriteRule ^/index\.(php|html)$ http://www.yourdomain.com/ [R=301, L]
RewriteRule ^(.*)/index\.(php|html)$ http://www.yourdomain.com/$1/ [R=301, L]

It gave me Error 500.

I have no problem when I use this:

RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

Any idea?

Last edited by edhan; 01-18-2008 at 12:22 AM.
Reply With Quote