Forgive me for this post, but I am having no luck figuring out how to do this.
I have a single host (on godaddy), and am trying to get multiple joomla sites arranged properly.
My first site, domain1.co.nz is within the root, and the second site is within the directory /domain2
I have use these rewritecond and I have got the redirect working, but when you are on the domain2.co.nz site, it always shows the subdirectory, domain2. There are also some // issues from certain pages too.
RewriteCond %{HTTP_HOST} domain2.co.nz$ [NC]
RewriteCond %{REQUEST_URI} !^/domain2/.*$
RewriteRule ^(.*)$ /domain2/$1 [QSA,L]
Can anyone help me with how I should structure the rewrites so that the
www.domain1.co.nz --> /
www.domain2.co.nz --> /domain2/
and in the future add another domain3 --> /domain3/
I was wondering if the domain .co.nz was something to do with it. I have tried many options but all the examples have .com, and I dont know how to do that.
Any help appreciated.
thanks
b.