Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my main URL ( and I want to redirect my parked domain ( to my main domain, but carry over anything after the root URL.

So I want to redirect to AND to, etc...

I tried using a wildcard redirect, but that didn't work.

Any help is appreciated.

share|improve this question
  RewriteCond %{HTTP_HOST} ^example1\.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.example1\.com$
  RewriteRule ^(.*)$$1 [R=301,L]

You could also do it in apache for the domain

Redirect permanent /
share|improve this answer

Do you really need to redirect one domain to the other?
If both domains have to load the same source code, you can use ServerAlias (Apache) or Host Headers (IIS) and have only one website with multiple domain names listening, all domains must be pointed to the same webserver.
Let me know and i will assist you on how you can do this.

share|improve this answer

Your Answer


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