I am trying to migrate my website from hpanel to VPS cyberpanel. Once I have Imported the site and migrated all data I am trying to change the .htaccess file but changes are not reflecting in my website. I tried to cahnge permissions also cleared cache and restarted openlitespeed server but nothing is working.
here is my htaccess code
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_3be6c411a66d9e3740a02a77e013dcf5”]
marker LOGIN COOKIE end
marker FAVICON start
RewriteRule favicon.ico$ - [E=cache-control:max-age=86400]
marker FAVICON end
marker DROPQS start
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_ga
marker 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_LSCACHEBEGIN LiteSpeed
The directives (lines) between “BEGIN LiteSpeed” and “END LiteSpeed” are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
SetEnv noabort 1 # END LiteSpeed # BEGIN 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]Testing if .htaccess is working
RewriteEngine On
RewriteRule ^test-htaccess$ /test-success [R=301,L]
Redirect /home-fsd to a new URL
Redirect 301 /home-fsd https://www.google.com