We have a site, which within it has a 2nd site (yes i know i shouldve used revolution - but that option wasnt available to me at the moment)
Basically if a visitor visits www.domain1.co.uk they get sent to id #2. If they visit www.domain2.com they get sent to id #78
Has anyone got an idea on how to acheive this?
The domain has no relevance, so it doesnt matter if you go into the 2nd sites content from domain 1, they just need to have differing landing pages.
cheers
Thanks lucas, makes sense i’ll let you know how i get on.
Hi lucas,
that certainly did the trick, is there any way that i could retain the domain nam ein the address bar via the htaccess, i know this is technically classed as spoofing, but they are the same site and company.
also, how would i rewrite the alias to be friendly?
Sorry im a htacess simpleton
Cheers
Well, its pointing but its rewriting to the true domain, which works for now but its not something we can have in the long run.
I had a word with our host, they suggested that we set up a 2nd virtual host for the domain we want to keep in the url and modify the vhost.conf file to look at the root of the other installation.
thats fine, its all been modified but im now in a position of not knowing how to modify the htaccess to respect the domains accordingly. in theory this should all just work out of the box, however the chances are thats not the case.
one of these ddays i will actually learn more about the htacess as well.
Thanks