如何在Phusion Passenger的虚拟主机工作中获得正常的重写规则?在虚拟主机中为PhusionPassenger使用RewriteEngine可以吗?
这里是我想要做的事:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.google\.com [NC]
RewriteRule (.*) http://www.google.com$1 [R=301,L]
我基本上要任何流量来xyz2.google.com/abc到重定向到www.google.com/abc
有任何想法吗?