【发布时间】:2017-12-03 09:48:21
【问题描述】:
我刚刚开始使用 Nginx 而不是 apache。
我正在尝试在 Apache 中找到类似的方法来做这样的事情:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?example\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
但在 Nginx 中。
所以基本上任何 .co.uk 流量都会被重定向到 .com
【问题讨论】: