我有网址
www.example.com/profile?username=abc
我想重写为
www.example.com/abc
我如何使用htaccess做到这一点?
RewriteCond避免无限重定向
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/profile
RewriteRule ^(.*)$ /profile?username=$1
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句