I currently have the location alex/ available for users:
location ~* ^/alex/ {
rewrite ^/alex(/.*)$ $1 break;
I need to
- add a new location,
/alexandru;- make a permanent redirect from
example.com/alextoexample.com/alex/.
I have created the new location with location /alexandru and it works well, but when i try to use rewrite ^/alex(.*)/$ /$1 break; for the permanent redirect it fails.