Quote:
Originally Posted by Jamz
Hi All,
Right im having a bit of bother trying to get this to work...
I have two websites:
website1
website2
Now both domain names point to the same web server,
|
That confuses me right there.
Typically, when you register a new domain name, you do not point it
to a web server, but to DNS name server IPs that your hosting provider
gives you.
If you're on a shared hosting account, no amount of tinkering with htaccess
will do what you are asking.
It really sounds like you need to set up an AddOn Domain. Look again at
your admin cpanel. KEEP looking at it until you see ADDON DOMAINS
or just ADDONs. Click AddOn Domains, then put in the second domain name.
TAB to the next field. It will create a folder of the same name. Done.
It's quite simple to add a domain.
Even if you have a dedicated IP, which is very unlikely unless you have
a VPS or dedicated server, htaccess will still probably NOT do what you are
asking because before the request gets to htacess, it goes through the
vhosts in httpd.conf. When it finds no entry for domain2, it will .... give
some sort of error.
Bompa