htaccess rewrite

Soldato
Joined
25 Sep 2003
Posts
3,725
Location
Manchester
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]
 
Thanks Dj_Jestar, I set up a vhost and it looks like it's going to be straight forward if only Vidahost could get things working... I heard they were supposed to be good. Their tech support people are helpful but it shouldn't really be such a ball ache to set up a simple package.

I'm wondering who's a good hosting company to go with these days?
 
Vida are good im on the cloud also - I think its just a little quirk the way they do this - ask for more detail theyll give you the solution
 
Back
Top Bottom