本文介绍了帮助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
发布评论