【发布时间】:2013-12-31 16:06:11
【问题描述】:
我正在尝试重定向尝试访问的流量:cat.rs.allgames.com/cloud/11/services/titles/game5/console/file.json
至:cat.cloud.allgames.com/titles/game5/console/file.json
在 .htaccess 文件中使用 301 永久重定向,但它总是将我发送到:cat.cloud.allgames.comcloud/titles/game5/console/cloud/11/services/titles/game5/console/file.json
这远非正确。我做错了什么?
我的 .htaccess 位于:cat.rs.allgames.com/cloud/11/services/titles/game5/console/file.json
看起来像这样:Redirect 301 / http://cat.cloud.allgames.com
【问题讨论】:
-
建议您切换到 RedirectMatch,因为
Redirect仅用于路径的精确匹配 -
我觉得我应该为此使用 ProxyPass。请原谅我缺乏经验,但我不确定在哪里使用我的 ProxyPass 命令。在 httpd.conf 文件中吗?
-
我不知道如何使用ProxyPass
标签: redirect http-status-code-301