404 error subdomain

i’ve recently add subdomain on cyberpanel, i installed wordpress lscache to the path that i create, but when i hit preview on subdomain at launcher it’s startly my site show up, but when i browse according to my domain it’s only 404 that appear.

I used cloudflare as cdn, i setup accordingly such as : A - subdomain.domain.com - ip address (vps)

this is my rewrite from my subdomain :

BEGIN LSCACHE

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]

marker CACHE RESOURCE start

RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]

marker CACHE RESOURCE end

marker LOGIN COOKIE start

RewriteRule .? - [E=“Cache-Vary:wp-postpass_6b416aa6ae3e50551f557ab0156316db”]

marker LOGIN COOKIE end

marker FAVICON start

RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]

marker FAVICON end

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

END LSCACHE

BEGIN NON_LSCACHE

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

marker MINIFY start

RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
RewriteCond %1/wp-content/cache/$2/$1.$2 -f
RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]

marker MINIFY end

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

END NON_LSCACHE

BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^/ - [L]
RewriteRule ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).) $2 [L]
RewriteRule ^/([_0-9a-zA-Z-]+/)?(.
\.php)$ $2 [L]
RewriteRule . index.php [L]

is there anything that i miss ??

Since you do not mention your OpenLiteSpeed or CyberPanel version, the answer will be a bit generic.

So if you are on OpenLiteSpeed version 1.4.38, please make sure to read this guide: https://cyberpanel.net/2018/09/10/openlitespeed-v1-4-38-has-been-released/

With this version sub-directories .htaccess is covered and you don’t need to do anything extra except restarting OpenLiteSpeed.

Also make sure to upgrade to latest version of OpenLiteSpeed as instructed on the article.

So if you are not on latest version of OpenLiteSpeed you would have to go extra mile and setup rewrite rules for sub-directory using this guide

If your issue is not resolved, mention extact version of CyberPanel and OpenLiteSpeed for answer to be specific.

my cyberpanel version is 1.7 sir

1.7.x ?

i mean 1.7.1, sorry sir

Alright, so did you upgrade your OpenLiteSpeed as instructed in the article? With the latest version, you should not be having any rewrite rules issues, and default WordPress rules should work, you just need to restart OpenLiteSpeed, but make sure to first run upgrade for OpenLiteSpeed.