我有几个重写规则,列在下面
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®ion_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
文件。