![]() |
How do I redirect www.domain.com to domain.com?
I've heard you can do this in htaccess but I don't know the code.
Anyone have it handy? Thanks |
this is from domain to www.domain ... maybe just switch it vice versa...
RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] |
Quote:
|
There is more than one way, but I believe this should work
RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.domain\.com rewriterule (.*) http://domain.com/$1 [R=permanent,L] |
| All times are GMT -7. The time now is 11:42 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123