Welcome! Log In Create A New Profile

Advanced

Rewrite rules

Daniel
November 29, 2016 04:52PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite rules

Daniel November 29, 2016 04:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready