日期:2014-05-17  浏览次数:20431 次

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