Redirect Question for Directory Structure Change

Reinis Rozitis r at
Thu Sep 10 08:17:04 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!

What do you mean by "got deeper" can you give a sample url that doesn't work?
Like what the uri is currently and what you need it to be?

Also a more complete nginx configuration might help to pinpoint the problem (because the order of regular expression location matching matters etc).


More information about the nginx mailing list