Try_files breaking index

I can access my site using /index.php?q=node/1 or /?q=node/1

When I add the code below, /?q=node/1 stop working:

location / {
  index index.php index.htm index.html;
  try_files $uri /_cache$uri /index.php;
}

why?

Marcos N.
+55 44 9918-8488

On Fri, Dec 11, 2009 at 12:56:11AM -0200, Marcos N. wrote:

I can access my site using /index.php?q=node/1 or /?q=node/1

When I add the code below, /?q=node/1 stop working:

location / {
  index index.php index.htm index.html;
  try_files $uri /_cache$uri /index.php;
}

why?

You should add a directory test:

  •   try_files $uri /_cache$uri /index.php;
    
  •   try_files $uri $uri/ /_cache$uri /index.php;
    


Igor S.
http://sysoev.ru/en/

Thanks, that works!

Marcos N.
+55 44 9918-8488