After setup VestaCP using Nginx + PHP-FPM WordPress permalink will not work. Here I will show how to fix WordPress permalink in VestaCP control panel. Let’s login VestaCP control panel using your login link. Here I will show step by step,
Here is my VestaCp control panel login url:
after login we will see our control panel. Let’s add a domain and select web template “WordPress” then save the domain into VestaCP control panel. Let’s install WordPress on that domain using FTP or Terminal. I prefer to install WordPress using terminal. After installing WordPress let’s login into WordPress dashboard and check everything.
After creating domain VestCP control panel create a domain document root folder in the user folder. Let’s connect FTP where we will see some folders and files like screenshot.
Open “conf” folder then “web” folder after that open “nginx.conf” file in code editor. Goto the line where your domain server configuration written. Checkout on screenshot.
add the line one line number 62.
try_files $uri $uri/ /index.php?$args;
Here is new updated and edited screenshot.
it’s done. But permalink will not work. Goto VestaCP control panel and goto server, restart nginx server. Now it’s done finally. WordPress permalink will work perfectly.