升级Apache时,某些RewriteRule停止工作

时间:2015-03-01 17:05:01

标签: apache .htaccess mod-rewrite

我在我的服务器上将Apache从2.2.14升级到2.4.7,而某些.htaccess RewriteRule已停止工作

#this rule isn't working
RewriteRule ^places/create?$ ./create-place.php

#this rules are working
RewriteRule ^places/create/artist ./create-place-artist.php
RewriteRule ^places/create/location ./create-place-location.php
RewriteRule ^places/create/others ./create-place-others.php

关于如何更新它们的任何想法?

谢谢!

1 个答案:

答案 0 :(得分:0)

?不在^places/create?$e?e表示eRewriteRule ^places/create ./create-place.php

简单地说就像其他有效的规则一样:

RewriteRule ^places/create/artist ./create-place-artist.php
RewriteRule ^places/create/location ./create-place-location.php
RewriteRule ^places/create/others ./create-place-others.php
RewriteRule ^places/create ./create-place.php

您需要更改订单。必须首先放置更具体的内容:

{{1}}