rewriterule ^/?([a-za-z\-]+)-exam.html$ class-exam.php?classname=$1 [l]
这个规则是正确的;
地址访问:“http://www.xxx.com/abc-exam.html”但是访问页面总是404
但是如果写成:
rewriterule ^/?([a-za-z\-]+)-exam.html/$ class-exam.php?classname=$1 [l]
地址访问“http://www.xxx.com/abc-exam.html/” 就可以导向指定页面。
请问哪儿出错了?为什么非要加那个“/”。谢谢
------解决方案--------------------
探讨
原来是和这个冲突了:
rewriterule ^([a-z\-]+)\.html$ class.php?classname=$1 [l]
那请问怎么区分这2个呢
