我正在尝试做这样的事情:
1)www.mysite.UK/anything-here/ redirects to www.mysite.COM/anything-here/
和
2)https://something.mysite.UK/anything-here/ to https://something.mysite.COM/anything-here/
我设法工作了1个,但没有2个。
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^(.*) https://w w w.mysite.com/%{REQUEST_URI} [R=302,NC]
如果是www或其他内容,是否可以放一些东西而不是www来读取它?
谢谢!