doubler
Mar 21st 2008, 1:43 pm
i am trying to redirect my without www URL with www URL i mean to say
when anybody open http://mysite.com then URL automatically redirect to http://www.mysite.com
so for this i have to some editing in .htaccess file and i did this way
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www
RewriteRule .? http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
and after doing this editing when i open site i get msg that "The Site isn't redirecting properly" so anybody who could tell me what's the problem with...Thanks!
when anybody open http://mysite.com then URL automatically redirect to http://www.mysite.com
so for this i have to some editing in .htaccess file and i did this way
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www
RewriteRule .? http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
and after doing this editing when i open site i get msg that "The Site isn't redirecting properly" so anybody who could tell me what's the problem with...Thanks!