我遇到一个小的难度。我有一个网页,并创建了一个CMS来维护内容。htaccess的重写规则混乱
每一个站点在系统的管理部分创建的时候,我都做到了,这样.htaccess文件被更新。
我只使用.htaccess文件来创建用户友好的URL。
我的.htaccess文件看起来是这样的:
RewriteEngine on
RewriteRule home.html index.php?page_id=2
RewriteRule producenter.html index.php?page_id=13
RewriteRule produkter.html index.php?page_id=12
RewriteRule om-oss.html index.php?page_id=14
RewriteRule producent-3-s.html index.php?show_manu=true&manu_id=4
RewriteRule bildbank-producent-3-s.html index.php?show_manu_press=true&manu_id=4
...
一切正常,用小的例外。 如果名称是“相似”,如在案件:
producent-3-s.html
and
bildbank-producent-3-s.html
该网站会自动显示第一次出现,例如“PRODUCENT -3- s.html”。 所以'bildbank-producent-3-s.html'永远不会显示。
我怎样才能解决这个问题?我希望我做我自己清楚,在此先感谢您的帮助和提示,我可能会得到
只需添加:'^ producent-3-s.html $' – tttony 2012-03-28 09:03:49