Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a domain alias that i want to forward to a specific directory on my main site. How do I get it so that only people visiting the alias "fakesite.com" to be redirected to "mainsite.com/fake" instead of everyone redirected to that?

This is on the windows platform at myhosting.com

share|improve this question
    
Please add details as to which web server software you're using. –  EEAA Feb 23 '10 at 2:21
    
You still didn't tell us what web server software you're using. It's most likely either IIS or Apache. –  EEAA Feb 23 '10 at 5:18

2 Answers 2

Apache?

<VirtualHost *:80>
    ServerName fakesite.com
    Redirect / http://mainsite.com/fake
</VirtualHost>
share|improve this answer

Configure the fakesite.com site (in IIS) to be a permanent redirection to another webpage mainsite.com/fake

alt text

Should probably tick the "A permanent redirection for this resource" box and "the exact URL entered above"..

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.