RewriteCond all domains white www
if i have a domain www.domain1.com and www.domain2.com on same folder, how can i get the the www.(domain.com) go to domain.com?
hob sombardy can help me :)
my ownd idé is
RewriteCond %{HTTP_HOST} www.%{HTTP开发者_运维知识库_HOST}
RewriteRule (.*) http://%{HTTP_HOST}/$1 [R=301,L]
but i don't know about it will work.
Try this:
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) http://%1/$1 [R=301,L]
精彩评论