Hi everyone, I am having 404 errors on my website, looking forward to helping.


New Member
All my vps use wordpress cms, I have the code of 1 wordpress page, but after I upload the hosting configuration, only the homepage and doamin.com/wp-admin page are still active. Writing and product error 404. My code has a .htaccess file with content
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ index \ .php $ - [L]
RewriteRule. /index.php [L]
# END WordPress
. But when I restart the VPS, it works normally. Is there any solution to handle this error without having to restart the VPS, I often upload the code to hosting and every time I have to restart the VPS , this is hard and time consuming.

. I have an openlitespeed admin page but it says "Include file detected in configuration file. Entering Read-only mode." , so I can't fix anything in here.
I am using Centos 7 + D irectadmin + Openlitespeed
. Thank you .