Welcome! Log In Create A New Profile

Advanced

Drupal issues with try_files

June 09, 2009 10:50PM
I'm having an issue here. I was using this shorthand:

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

which would mean /about is /index.php?q=/about

However, in the past, the rewrite is like this (and works great):

if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}

where it would be /index.php?q=about

Now, the app should handle "/about" just the same as "about"

Is there anything in nginx I could do? A change across the entire
codebase on Drupal and its modules will be complex if there's
something that can be done on the nginx level to pass the URI without
the starting slash...
Subject Author Posted

Drupal issues with try_files

mike June 09, 2009 10:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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