httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <>
Subject [users@httpd] non-www to www redirect works with a little issue
Date Fri, 25 May 2012 10:53:29 GMT

I have place the following in my .htaccess to redirect non-www to www redirection 

RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^(.*)$1 [R=301]


The redirect work well but a little hitch.
Say If I visit it redirect to so at the home page. Where it should
append the www before the link, but not alter the link.

What modification should I add here to make it work ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message