我如何仅从 .in 或 .net 和其他人重定向到 .com。这是我尝试过的
RewriteEngine on
Rewritecond %{HTTP_HOST} !^www\.mysite\.com
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
我如何使它也适用于子域?例子:
http://subdomain.mysite.in/app/rest-of-the-url
http://subdomain.mysite.net/app/rest-of-the-url
应该去
http://subdomain.mysite.com/app/rest-of-the-url