Issue with LScache redirect to wrong mobile version

#1
Hello team,

Good Day,

Kindly need your support with my store Mobile version.

Today i have installed LSCOC for OC 3.0.2.0 on my store and setup everything as below. i have noticed a difference in the site loading speed which is positive.

LSCOC_general_setting.png
LSCOC_page_setting.png
LSCOC_ESI.JPG

But the issue i'm facing is that when loading the site from mobile it's showing the main site theme which is wrong, it should redirect the customer to mobile version.
here is the link for the site fore desktop:
https://marinelife.store
and for mobile version:
https://marinelife.store/mobile

This is the .htaccess configuration below:

Apache config:
### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup on
## Uncomment the following directives if you has a separate mobile view
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile]
</IfModule>
### LITESPEED_CACHE_END
Can you please help me to fix this issue.
 
Last edited by a moderator:
#3
Hello Wuhua,

Thank you for your replay.

Yesterday i have reached my hosting support team to assist me to fix this issue and it seems it has been fixed when they changed .htaccess file using below RewriteCond:

Apache config:
### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup on
## Uncomment the following directives if you has a separate mobile view
RewriteEngine On
#RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile]
RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC]
RewriteRule .* - [E=Cache-Control:vary=ismobile]
</IfModule>
### LITESPEED_CACHE_END
 
Top