0

On my site my users click on a profile and the link shows up as www.website.com/profile/username and I would like it to only be www.website.com/username - any suggestions on how I can do this

Note: my webserver is nginx so using rewrite rules is ok, but I would want to know how to write them in the config file

4

1 回答 1

0

使用以下重写规则:

rewrite ^/profile/(.*)$ /$1 permanent;
于 2012-11-24T13:00:20.180 回答