我想将所有对 two.dev 的请求重定向到 one.dev/node/10,但仍然有 url 读取“two.dev”或至少“two.dev/node/10”。我尝试了以下方法,但出现重定向循环错误。
<VirtualHost *:80>
ServerName two.dev
ServerAlias *.two.dev
DocumentRoot /home/websites/one.dev
Redirect permanent / /node/10/
<Directory /home/websites/one.dev>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>