首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

htaccess 伪静态跳转有关问题

2013-07-04 
htaccess 伪静态跳转问题想从tag/abc 跳到 tag/index.php?tabcRewriteRule ^tag/(.*)$ tag/index.php?t$

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

热点排行