PDA

View Full Version : redirect aliased domain to a file?



luckyduck
16 Dec 2008, 10:55 PM
We have a website with a main domain and half a dozen domains aliased to it.

I don't know if this is possible but what we are trying to achieve, via .htaccess, is that if someone arrives at one of the domain aliases they are sent to a specific page on the main domain e.g.

someone arrives at the aliased domain domainb.com and is sent to domaina.com/somefile.htm

Everything I have tried so far either has no effect or else returns a 500 internal server error. These attempts include:

simple 301 redirects
mod rewrite redirects

Given that the one domain is purely an alias is it even possible to redirect someone from an alias to a file on the real domain using .htaccess?
Luckyduck
P.S sorry if wrong place.