读书人

htaccess 伪静态跳转有关问题

发布时间: 2013-07-04 11:45:40 作者: rapoo

htaccess 伪静态跳转问题
想从tag/abc 跳到 tag/index.php?t=abc



RewriteRule ^tag/(.*)$ tag/index.php?t=$1

index.php
print_r($_GET['t']);//显示的是index.php 而不是 abc 怎么办??


php?
[解决办法]


RewriteRule ^tag/(?!index\.php)(.*)$ tag/index.php?t=$1

读书人网 >PHP

热点推荐