Re: [users@httpd] non-www to www redirect works with a little issue

2012-05-26 Thread Clay Porter
This works for us. RewriteCond %{HTTP_HOST} !^www\.example\.com$ RewriteRule .* http://www.example.com%{REQUEST_URI} [R=301,L] On Fri, May 25, 2012 at 6:53 AM, J. Bakshi joyd...@infoservices.in wrote: Hello, I have place the following in my .htaccess to redirect non-www to www redirection

[users@httpd] non-www to www redirect works with a little issue

2012-05-25 Thread J. Bakshi
Hello, I have place the following in my .htaccess to redirect non-www to www redirection ` RewriteCond %{HTTP_HOST} ^example\.com$ RewriteRule ^(.*) http://www.example.com/$1 [R=301] ``` The redirect work well but a little hitch. Say If I visit