Nginx Drupal Rewrite

Igor Sysoev is at rambler-co.ru
Wed May 20 16:29:04 MSD 2009


On Sun, May 17, 2009 at 02:43:08PM +0700, Hendry Lee wrote:

> > - try_files $uri $uri/ /foo/index.php?u=$irequest_uri;
> > + try_files $uri $uri/ /foo/index.php?u=$request_uri;
> 
> This doesn't work. With q or u variables. I tried it on an installation of
> Drupal with clean url. The request failed during an AJAX request.
> 
> index.php?q=$uri&$args works though.
> 
> Notice it's 'q=' not 'u='

So, just to make clear: this

 try_files $uri $uri/ /foo/index.php?q=$request_uri;

does not work, but this

 try_files $uri $uri/ /foo/index.php?q=$uri&$args;

works.

How does Drupal go with zero $args ? I.e., /foo/index.php?$uri& ?


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





More information about the nginx mailing list