【发布时间】:2017-09-01 12:16:16
【问题描述】:
我需要这个网址:
http://example.net/aroundtheshows/get?id=123
被重写(不重定向)到:
http://example.net/ats/get?id=123
所以我在我的 htaccess 中添加了以下 RewriteRule :
RewriteCond %{REQUEST_URI} ^\/aroundtheshows
RewriteRule ^aroundtheshows(.*)?$ ats$1 [L]
但它不起作用,我得到一个 404。
但是,如果我有 R=301 标志,重定向工作正常(虽然这不是我想要的,但这意味着匹配是正确的)。
谢谢!
【问题讨论】:
-
您找到解决方案了吗?面临同样的问题:-\
标签: .htaccess mod-rewrite