redirect question (inception inside)

Ronald Van Assche rva at onvaoo.com
Sat Aug 16 08:27:12 UTC 2014


I want to redirect /us/us/directory/filename to the /us/directory/filename directory on my Nginx server.

but this

        if ( $request_filename ~ /us/us/.+ ) {
                rewrite ^(.*) http://mysiteurlt/us/$1 permanent;
        }

wont work.

How can i redirect or rewrite such url  ?


More information about the nginx mailing list