我有两个域mcleancenter.org和aldentheatre.org,它们都指向一个目录。我想将没有"alden-theatre"的所有"alden-theatre"重定向到mcleancenter.org。所有在URLs中有URLs的URL都应该重定向到aldentheatre.org。
例如:
/about应该重定向到mcleancenter.org/about/contact应该重定向到mcleancenter.org/contact/alden-theatre应该重定向到aldentheatre.org/alden-theatre/alden-theatre/perfomance应该重定向到aldentheatre.org/alden-theatre/perfomance任何帮助都是非常感谢的。
发布于 2012-09-03 08:15:10
你用的是哪台服务器?
在任何情况下,您都可以将Apache服务器作为代理“放在”您使用的任何服务器之前。然后可以使用雷克威尔特重定向请求。
发布于 2012-09-03 08:55:34
因为所有的urls都重定向到mcleancenter.org
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^alden-theatre(.*) http://www.aldentheatre.org/alden-theatre$1 [R]希望这能帮上忙
https://stackoverflow.com/questions/12244025
复制相似问题