Re: a problem with a double slash (//) after the domain name in many of my client's site's URLs
Rose,
you should use Apache's ModRewrite to redirect all incorrect or
obsolete URLs to the correct URL. Example:
RewriteEngine On
RewriteBase /
# remove double slashes
RewriteRule ^/+(.*) http://www.example.com/$1 [R=301,L]
# redirect upper case URLs to lower case
RewriteRule ^AFILE.html http://www.example.com/afile.html [R=301,L]
Peter
0 Comments:
Yorum Gönder
<< Home