Welcome! Log In Create A New Profile

Advanced

Re: I need some urgent rewrites

Aleksandar Lazic
March 21, 2015 07:04PM
Hi.

Only syntax checked.

Please read for further investigation.

http://nginx.org/en/docs/varindex.html
http://nginx.org/r/location
http://nginx.org/r/return
https://regex101.com/

Am 21-03-2015 16:57, schrieb Milos:
> I need some urgent rewrites
>
> From:
> http://www.my-domain.de/kalorientabelle.php/unterkategorie/204-suppen
> To:
> http://www.my-domain.de/kalorientabelle/suppen.204/unterkategorie

[snip]

This should work for all your examples.

location ~ (\w+).php\/(\w+)\/(\d+)-([\w-]+) {
return 302 $scheme://$hostname/$1/$4.$3/$2;
}

> I would be very happy if someone can help me.

BR Aleks

> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,257523,257523#msg-257523
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

I need some urgent rewrites

Milos March 21, 2015 11:57AM

Re: I need some urgent rewrites

Aleksandar Lazic March 21, 2015 07:04PM

Re: I need some urgent rewrites

Milos March 22, 2015 10:26AM

Re: I need some urgent rewrites

Aleksandar Lazic March 23, 2015 07:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
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