Hey eveyone, I have the following server block: server { listen 80; server_name www.petpal.co.il; return 301 http://petpal.co.il$request_uri; } server { listen 80; server_name petpal.co.il; root /usr/share/nginx/petpal; index index.php; location / { try_files $uri $uri/ @extensionless-php; } location @extensionless-php { rewrite ^(.*)$ $1.php last; } error_pageby saharAti - How to...
Hello everyone, I want to make it so whenever someone tries to access a page that doesn't exist, he gets redirected to lets say 404.php I could get it done for the following examples: http://l2ovc.com/bla http://l2ovc.com/bla.html but cannot get it done for: http://l2ovc.com/bla.php I get a blank page with "File not Found" text. Here is my server configuration: server {by saharAti - How to...
![]() |
![]() |
![]() |
![]() |
|