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
or add this in .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>





Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation