w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Stop nginx from redirecting to index.php

Looking at the tutorial,

Do you have a line that looks like this?

try_files $uri $uri/ index.php;

This will attempt to serve the file specified by the URI in relation to the root (or alias). If the file is not found nginx will then redirect you to index.php.

I hope this helps, but we must be missing something...

P.S.

I'm assuming you've tried restarting Nginx (sudo service nginx restart). Nginx won't read the configuration files until you do this. (Or sudo service nginx reload).





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.