Welcome! Log In Create A New Profile

Advanced

Re: lookback in nginx?

August 05, 2009 08:13AM
2009/8/5 Nuno Magalhães <nunomagalhaes@eu.ipp.pt>:
> I know what rewrite is. If i have
> domain.com/fileWithoutExtention/param1/param2/ can i parse it so that
> my file receives the two params using regular expressions? This is
> only one of the issues i'm trying to deal with.
>
> Can you recomend good PCRE links?
>

http://www.regextester.com/

probably something like this
rewrite ^/fileWithoutExtension/([^/]*)/(.*)$
/fileWithoutExtension?param1=$1&param2=$2



--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Subject Author Posted

lookback in nginx?

Nuno Magalhães August 04, 2009 07:20PM

Re: lookback in nginx?

matrix August 05, 2009 01:18AM

Re: lookback in nginx?

Nuno Magalhães August 05, 2009 07:41AM

Re: lookback in nginx?

edogawaconan August 05, 2009 08:13AM

Re: lookback in nginx?

Nuno Magalhães August 05, 2009 09:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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