I have multisite sub-directory wordpress setup in nginx server. My posts are redirect to 404 not found page.
So that I decide to write some config code in config file of nginx
My Post urls are something like below
http://abc/site1/index.php/post-slug/
http://abc/site2/index.php/post-slug-1/
They all goes to 404 so I write some code in config file of nginx like below
location /site1/index.php {
rewrite ^/site1/index.php/(.*) /index.php?****** permanent;
}
Here I also want to remove 'site1' because this is dynamic (multisite setup).
Or do I need to add code of map in config file?
Please help me to solve this issue.