帮助mod_rewrite的 [英] Help with mod_rewrite
本文介绍了帮助mod_rewrite的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想改写链接,如:
index.php页面=条目和放大器;?ID = 15&安培;行动=编辑到进入/ 15 /编辑
这是我的.htaccess怎么看起来像现在:
index.php?page=entry&id=15&action=edit to entry/15/edit this is how my .htaccess looks like now:
# Turn the Rewrite engine on
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# Rewrite rules
RewriteRule ^([^/]*)(/([^/]*)/?)([^/]*)?$ index.php?page=$1&id=$2&action=$3 [QSA,L]
给我404。
请告诉我这个问题?
感谢
推荐答案
有太多的括号内。你可能有一个Lisp感染。
Too many parentheses. You might have a Lisp infection.
尝试:
RewriteRule ^([^/]*)/([^/]*)/?([^/]*)?$ index.php?page=$1&id=$2&action=$3 [QSA,L]
这篇关于帮助mod_rewrite的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文