冲突的重写规则

时间:2013-08-30 18:15:28

标签: .htaccess mod-rewrite

我有几个重写规则,列在下面

RewriteRule ^([^/\.]+)\.html?$ php/statePage.php?region_slug=$1 [L]
RewriteRule ^([^/\.]+)-tree-services/([^/\.]+)\.html?$ php/cityPage.php?region_slug=$2&state_slug=$1 [L]
RewriteRule ^([^/\.]+)-tree-services/([^/\.]+)/([^/\.]+)\.html?$ php/vendorPage.php?slug=$3&region_slug=$2&state_slug=$1 [L]

RewriteRule ^([^/\.]+)-Sitemap\.xml?$ php/xmlState.php?region_name=$1  [L]

RewriteRule ^([^/\.]+)\.html?$ php/otherPages.php?pageSlug=$1  [L]

前四个正常工作,但最后一次重写规则显示statePage.php文件的模板而不是otherPages.php文件。

0 个答案:

没有答案