Redirect Question for Directory Structure Change

figshta nginx-forum at
Thu Sep 10 05:45:52 UTC 2020

I was wrong...

>This seems to work: 
>>rewrite ^/e/(.*) /$1 permanent; 

It only works for the first level... 
'' works but other links from that page that
got deeper into the file structure do not!

So, maybe map directive is needed after all...

I'm planing to try that next, but I want to make sure that a more simple
'return' redirect won't work in my case.

Posted at Nginx Forum:,289363,289372#msg-289372

More information about the nginx mailing list