2012-03-06 48 views
0

我想用的.htaccess的.htaccess通过所有的get PARAMS

当他们访问该页面转发用户:http://www.example.com/add_event/ 重定向到:http://www.example.com/index.php?cmd=add_event

我有下面的代码工作正常:

RewriteRule ^add_event/?$ index.php?cmd=add_event [T=application/x-httpd-php] 

页面add_event /可以用GET参数打开。示例:add_event /?id = 5 & user =超级用户

如何传递get参数,因为它们是?所以,在这种情况下,用户可以被重定向到: http://www.example.com/index.php?cmd=add_event&id=5&user=superuser

回答