Well I appear to have figured out my own issue with some more trial and error. I added the try_files directive a second time, to the .php$ location block at the end. So now the last location block in my config is: location ~ \.php$ { try_files $uri $uri/ /index.php?$args; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000;by brockfanning - How to...
Thank you, what you suggest should work. However it appears that paths to non-existent .php files do not make it to my try_files directive. I believe I was too quick to assume that I could fix the problem by modifying $args. I think the answer I need is to figure out why non-existent .php file paths are not passing along to my try_files directive. I'll post my config below, but to illustrateby brockfanning - How to...
Hello, first time post. I have set up Nginx for a Drupal 7 site and am very happy with the performance so far. I just need some help in the rewrite/redirect department... Problem: I am revamping a site with static .php files, and need to set up redirects from those old static URLs to "clean" versions. For example I need: "about-us.php" to redirect to "about-us"by brockfanning - How to...
![]() |
![]() |
![]() |
![]() |
|