Soldato
I'm using OpenCart to set up a multi-store, part of getting a multi-store to work is setting up subdomains so OpenCart knows which shop to serve up.
I'm using VidaHost cloud and I can't set up proper subdomains that point to OpenCart so have been told I need to set up domain aliases by Vidahost and then make a rewrite rule in .htaccess.
Here's what I have but it doesn't work, OpenCart thinks it's the main store when I type in domainalias.domain.com! Any ideas appreciated!
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainalias\.domain\.com$ [NC]
RewriteRule (.+)$ "http://domain.com/shop/index.php/$1" [L,P]
I'm using VidaHost cloud and I can't set up proper subdomains that point to OpenCart so have been told I need to set up domain aliases by Vidahost and then make a rewrite rule in .htaccess.
Here's what I have but it doesn't work, OpenCart thinks it's the main store when I type in domainalias.domain.com! Any ideas appreciated!
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainalias\.domain\.com$ [NC]
RewriteRule (.+)$ "http://domain.com/shop/index.php/$1" [L,P]