Custom slug .php url of wordpress post on Nginx not working, but other URLs are working properly
WordPress dirname1 installation as http://localhost/dirname1/
Example URL http://localhost/dirname1/mypost.php is working
By using the setting bellow;
location ~ .php$ {
try_files $uri $uri/ /dirname1/index.php?$args;
}
I want to run WordPress installation of dirname2 also, but I am not able to run both same time
WordPress dirname2 installation as http://localhost/dirname2/
Example URL http://localhost/dirname2/mypost.php is not working
for that I tried setting bellow for .php wordpress url
location ~ .php$ {
try_files $uri $uri/ wordpress user;
}
For Referance-> Check at Example for WordPress and Joomla: http://nginx.org/en/docs/http/ngx_http_core_module.html#location
Leave an answer