internal wordpress links 404 after migartion

Error: Internal WordPress links 404 after migration

add this line in the configuration file

I’m using wordpress multisite with custom permalink setting: /%category%/%postname%/
for vestacp add in both files
On server{
location / {
try_files $uri $uri/ /index.php?$args;


This can be difficult to eyeball so I’m going to try my best. I think it’s this line:

try_files $uri $uri/ /index.php?q=$uri&$args;
I believe adding the $uri to the end may be breaking it. What if it were instead:
try_files $uri $uri/ /index.php?$args;
You can find more about Nginx config for WordPress here:

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat