RewriteRule有2个值

时间:2016-01-27 17:33:15

标签: .htaccess mod-rewrite url-rewriting

网址:http://siteexample.tld/index.php?a=profile&u=johndoe 我正在尝试将此网址更改为siteexample.tld/profile/johndoe 如果a = =组然后siteexample.tld/groups/nameofgroup等......

到目前为止,这是我的htaccess

RewriteEngine on
RewriteCond %{request_filename} -f
RewriteRule ^(.*) $1 [L]
RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$  index.php?a=$1&q=$3    [L]

0 个答案:

没有答案