try
rewrite ^/(.*)\.gifv /vid.php?id=$1 last;
On Tue, Nov 8, 2016 at 8:20 PM, khav wrote:
> Suppose i have a url as `http://somesite.com/ekjkASDs.gifv` , i want to
> rewrite it as `http://somesite.com/vid.php?id=ekjkASDs`
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,270815,2
Suppose i have a url as `http://somesite.com/ekjkASDs.gifv` , i want to
rewrite it as `http://somesite.com/vid.php?id=ekjkASDs`
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,270815,270815#msg-270815
___
nginx mailing list
nginx@nginx.org
ht
Thanks !
On 13/07/2015 12:04, B.R. wrote:
Your PCRE is not right. You might interpret it in more 'natural'
language as:
/api/app///
The URI /api/app/login does not match it.
You have several ways of addressing that:
- Rewrite you huge, do-it-all PCRE, adding optional, non-capturing groups
- Spl
Your PCRE is not right. You might interpret it in more 'natural' language
as:
/api/app///
The URI /api/app/login does not match it.
You have several ways of addressing that:
- Rewrite you huge, do-it-all PCRE, adding optional, non-capturing groups
- Split the rewriting rule in several versions, ea
Hi,
Am suffering with a bit of writer's block when it comes to query rewrites.
I've got a rewrite rule that looks like :
rewrite ^/api/app/([^/]+)/([^/]+)/([^/]+)?$ /api/app/$1.php?p=$2&q=$3? last;
I am having two problems :
- I am getting 404 when I try to make a POST call to /api/app/login,