Nginx + PHP 7 + CI 3 |
Hi.
Does anyone have an nginx config file for PHP 7 + CI 3? If I do: http://www.foo.dev/index.php/Campaigns This works fine. But if I do: http://www.foo.dev I get a 404. I'm upgrading a V2.14 application to the current 3.x and I haven't developed in PHP in 6 months and forgotten all the little issues! Thanks
Add this line to your nginx server part:
location / { index index.html index.htm index.php; try_files $uri $uri/ /index.php?q=$uri&$args; } Works! |
Welcome Guest, Not a member yet? Register Sign In |