Welcome! Log In Create A New Profile

Advanced

Re: Rewrite with apostrophe causes 404

August 22, 2010 02:10PM
On Sun, May 23, 2010 at 04:47:49PM -0400, st1905 wrote:

> Hello,
>
> videos/1432/so-it/'s-ok-karyn-garcia
>
> above causes 404
>
> if i manually edit the url to videos/1432/so-it's-ok-karyn-garcia it works
>
> Here is the rewrite rule
>
> rewrite ^/videos/([^/]*)/([^/]*)$ /play.php?vid=$1 last;
>
> Can you tell me how can i fix this ?

location = /videos/1432/so-it/'s-ok-karyn-garcia {
fastcgi_pass ...
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /path/to/play.php;
fastcgi_param QUERY_STRING vid=1432/so-it/'s-ok-karyn-garcia;
}


--
Igor Sysoev
http://sysoev.ru/en/

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

Rewrite with apostrophe causes 404

st1905 May 23, 2010 04:47PM

Re: Rewrite with apostrophe causes 404

st1905 May 23, 2010 05:38PM

Re: Rewrite with apostrophe causes 404

st1905 August 22, 2010 08:25AM

Re: Rewrite with apostrophe causes 404

Igor Sysoev August 22, 2010 02:10PM

Re: Rewrite with apostrophe causes 404

st1905 August 24, 2010 10:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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