![]() |
Force WWW with htaccess
Hello,
I am trying to force the www version of a website and I'm trying doing this with .htaccess but it simply doesn't work I don't know what Im doing wrong :S Currently using this code in .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^(.*)\.domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/ [R=301,L] </IfModule> |
This is what I use in my htaccess
Code:
RewriteEngine On |
Your code works in the .htaccess, Thanks :thumbsup
|
All times are GMT -7. The time now is 07:06 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123