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%/
/etc/nginx/site-available/domain.conf
for vestacp add in both files
yourhosting.in.nginx.ssl.conf
yourhosting.in.nginx.conf
On server{
location / {
try_files $uri $uri/ /index.php?$args;
}




Greetings!


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:
Jarland

Leave a Comment

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

To Resolve this issue at just 5$ from ServerExpert

https://serverexpert.io/

For Hosting please visit Hostingwebsite.io

You have Successfully Subscribed!

Open chat