网址:http://siteexample.tld/index.php?a=profile&u=johndoe
我正在尝试将此网址更改为siteexample.tld/profile/johndoe
如果a = =组然后siteexample.tld/groups/nameofgroup
等......
RewriteEngine on
RewriteCond %{request_filename} -f
RewriteRule ^(.*) $1 [L]
RewriteRule ^(([^/]*)+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&q=$3 [L]