Welcome Guest, Not a member yet? Register   Sign In
NGINX / htaccess woes
#5

Hello

There is an example config at

https://www.nginx.com/resources/wiki/sta...deigniter/

Just change

Code:
   

       location / {
               try_files $uri $uri/ =404;
       }

to

Code:
       location / {
               # Check if a file or directory index file exists, else route it to index.php.
               try_files $uri $uri/ /index.php;
       }

and it should work fine.
Reply


Messages In This Thread
NGINX / htaccess woes - by microbluechip - 07-19-2017, 02:33 AM
RE: NGINX / htaccess woes - by Hussein Elturkey - 08-06-2017, 12:16 PM
RE: NGINX / htaccess woes - by InsiteFX - 08-07-2017, 03:26 AM
RE: NGINX / htaccess woes - by abubasil - 08-24-2017, 06:23 AM
RE: NGINX / htaccess woes - by Happy Camper - 08-26-2017, 11:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB