I have this website on cyberpanel on a litespeed server:
It was recently moved over from WPX, where everything was working fine.
After moving to the current server, the dynamically created pages created by a real estate plugin end up at 404 error pages, if visiting the pages directly.
For example, to reproduce the error, if you start here:
click on one of the listings (it loads properly)
if you refresh the page (or copy and paste the link to visit the page directly), you end up at a 404 page.
I’m quite certain this is an issue with the set up in cyberpanel. It was working ok when the website was at WPX hosting which is also on litespeed server.
I feel like the issue is related to how sometimes when adding a new website to the server, there are sometimes some looping redirects, until things are more fully set up. I’m not sure, it’s past my understanding.
Maybe something needs to be changed in “vHost conf”?
Below is the .htaccess file contents:
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 \.litespeed_conf\.dat - [F,L]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_fddd4451ddcb9fe08bb2a59390395360”]
marker LOGIN COOKIE end
marker FAVICON start
RewriteRule favicon.ico$ - [E=cache-control:max-age=86400]
marker FAVICON end
marker WEBP start
RewriteCond %{HTTP_ACCEPT} “image/webp”
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).Safari
RewriteCond %1 >13
RewriteRule . - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]marker WEBP end
marker DROPQS start
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_gamarker DROPQS 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! ## ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END NON_LSCACHE ###START: Force WWW to NON-WWW RewriteEngine On RewriteCond %{HTTP_HOST} ^www.(.*)$ RewriteRule ^(.*)$ http://%1/$1 [L,R=301] ###END: Force WWW to NON-WWW###START: Force HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
###END: Force HTTP to HTTPSRewriteEngine On
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} /wps/rest/21806/image/account.photo(.)
RewriteRule . - [F]RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} MJ12bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MegaIndex.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} bingbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} DotBot [NC]
RewriteRule .* - [F]deny from 158.69.192.143
BEGIN litespeed noabort
RewriteEngine On RewriteRule .* - [E=noabort:1] # END litespeed noabortlog php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_value error_log /domains/realestatecoalharbour.com/public_html/php-errors.logBEGIN WordPress
The directives (lines) between “BEGIN WordPress” and “END WordPress” are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]END WordPress
BEGIN ShortPixelWebp
The directives (lines) between “BEGIN ShortPixelWebp” and “END ShortPixelWebp” are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
END ShortPixelWebp