RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.SiteName\.com
RewriteRule (.*) http://www.SiteName.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php?\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php?$ http://www.SiteName.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.SiteName\.com
RewriteRule (.*) http://www.SiteName.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php?\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php?$ http://www.SiteName.com/$1 [R=301,L]
0 comments:
Post a Comment