我在我的服务器上将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
关于如何更新它们的任何想法?
谢谢!
答案 0 :(得分:0)
?
不在^places/create?$
。e?
。 e
表示e
或RewriteRule ^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}}