CodIgniter and htaccess rewrite rule question |
[eluser]felyx[/eluser]
Well I have the following htaccess file and it is working fine but I will explain below what my problem is. Code: RewriteEngine on What my problem is that I want to redirect http://www.somesite.com to http://somesite.com without ruining my actually working htaccess file/website. Anyone can give me a little help how could I put this rewrite rule into my htacces file without causing trouble? Thank you in advance!
[eluser]pickupman[/eluser]
Add this below RewriteEngine On Code: RewriteCond %{HTTP_HOST} !^www.somesite.com$ [NC]
[eluser]felyx[/eluser]
[quote author="pickupman" date="1284403007"]Add this below RewriteEngine On Code: RewriteCond %{HTTP_HOST} !^www.somesite.com$ [NC] Thank youvery much it works!
[eluser]12vunion[/eluser]
Add a line below RewriteEngine on Code: #no WWW The reverse also works Code: #Force WWW |
Welcome Guest, Not a member yet? Register Sign In |