【发布时间】:2009-04-15 22:15:24
【问题描述】:
我需要用新的眼光来看待这件事。我很难发现问题。
在文件夹 X 中,我有一个 .htaccess 文件,其中包含以下两行:
RewriteEngine on
RewriteRule ^([A-Za-z0-9\.-]+)/?$ item-display.php?bibid=$1 [NC,L]
我的解释是,该目录中的任何内容都将被重定向到项目显示页面。问题是在 item-display 页面上,回显 bibid 输出 'display-item' 的值。所以我以某种方式重定向: http://localhost/test/cat/item/14056a 至:http://localhost/test/cat/item/item-display.php?bibid=item-display
有什么想法吗?
干杯
【问题讨论】:
标签: apache .htaccess mod-rewrite url-rewriting