【发布时间】:2014-05-29 03:30:41
【问题描述】:
好的,所以我在我正在构建的网站的 .htaccess 中有一个规则,该规则有效。这里是:
RewriteRule ^/news/([0-9]+)$ /news.php?%{QUERY_STRING} [L,NC,QSA]
它将 mysite.com/test/ 转换为 mysite.com/test.php(嗯,不是最终用户,但这是它在后台所做的)。
现在我不得不更新服务器,而 apache 2.4.9 现在给了我这个错误:
The requested URL /news.php/ was not found on this server.
这里开始把我的头撞到墙上了。
我已经做了什么:
- 试过 ^news/([0-9]+)$ /news.php?%{QUERY_STRING} [L,NC,QSA]
- 试过 ^/news([0-9]+)$ /news.php?%{QUERY_STRING} [L,NC,QSA]
- 试过 ^/news/([0-9]+)$ /news.php [L,NC,QSA]
我知道我肯定在里面做错了什么,但在 x.x 之前它工作正常
【问题讨论】:
标签: apache