Rewrite with apostrophe causes 404
    Igor Sysoev 
    igor at sysoev.ru
       
    Sun Aug 22 22:05:32 MSD 2010
    
    
  
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/
    
    
More information about the nginx
mailing list