htaccess重定向以及其他GET信息

时间:2012-01-22 23:38:22

标签: .htaccess

我的.htaccess

中有以下代码
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?type=Navigation&action=$1

所以,当有人输入时:

http://localhost/show-site

它转到:

http://localhost/index.php?type=Navigation&action=show-site

我想知道你是否可以在有人输入时修改.htaccess:

http://localhost/show-site?extravar1=a&extravar2=b

它转到:

http://localhost/index.php?type=Navigation&action=show-site&extravar1=a&extravar2=b

0 个答案:

没有答案
相关问题