Rewrite rules

Daniel daniel at linux-nerd.de
Tue Nov 29 21:51:08 UTC 2016


Hi there,

i try to setup some rules.
I have to rules which conflicts.

rewrite ^/(.*?)/(.*?)/(.*)$ /$3;
#rewrite ^/$ /a/b permanent;

the first Rules is needed from our developer 

the second rules os for a request. The Goal is to redirect all request on any domain.com <http://domain.com/> to anydomain.com/a/b <http://anydomain.com/a/b>

Maybe some has a hint for me.

Cheers

Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20161129/4dd271f8/attachment.html>


More information about the nginx mailing list