[Solved] Rewrite rule for magento multisite didn't work

#1
I have the following rewrite rule for magento multisite:

Code:
RewriteCond %{HTTP_HOST} ^premium\.domain\.com$
RewriteRule .* - [E=MAGE_RUN_CODE:premium,E=MAGE_RUN_TYPE:website]
The rule works with Apache but didn't work with Litespeed. Are there any solution for this problem?

I am using Litespeed enterprise 4.0.18 trial license on WHM/Cpanel box.
 

mistwang

LiteSpeed Staff
#2
Please check the phpinfo() page output, see if SERVER["MAGE_RUN_xxxx"] variables are set or not. if not, adjust php.ini to let PHP create those variables from environment.
 
#3
The problem solved.
Not really Rewrite rule problem, but .htaccess location problem.

Document Root:

domain.com -> public_html
premium.domain.com -> public_html/premium

premium.domain.com use magento app at parent folder public_html.

apache + magento multisite work with .htaccess file located in public_html folder but litespeed also need .htaccess in public_html/premium with the rewrite rule.

Thanks litespeed staff.
 
Top