Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: luki2p on January 23, 2019, 05:11:26 PM
-
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:
404 Not Found
nginx/1.14.2
I spend all day on it, without success. Please help.
-
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;
-
Thank you. It save me a lot of time.