404 Not Found - WordPress Pretty Links doesn't work

Started by luki2p, January 23, 2019, 05:11:26 PM

Previous topic - Next topic

luki2p

Hello Guys!

I am new on CentOS. I have installed the CWP7 with Nginx Only webserver. Hovewer, I have trouble problem with permalinks on my WordPress site.

When I use the "ugly links"  (?p=123) - it works well, but not with enabled pretty links - then on each subpages I see:
Quote404 Not Found
nginx/1.14.2

I spend all day on it, without success. Please help.

luki2p

Ok, I fixed! :)

Edit:
sudo nano etc/nginx/conf.d/vhosts/DOMAIN_NAME.conf

And add this code in location block:
try_files $uri $uri/ /index.php?q=$uri&$args;

ekgrad