帮助mod

编程入门 行业动态 更新时间:2024-10-08 11:00:03
本文介绍了帮助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

本文发布于:2023-11-01 00:55:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547778.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:mod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!