Hey Everyone!
I have this little snippet
to redirect fromPHP Code:RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
www.example.com/
to
example.com/
However it actually redirects to
example.com//
I remember having this issue in the past and adding a / into the regex to fix it, but I can't remember now.
Thanks,
Keebs



Reply With Quote
Bookmarks