Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Title says it all really, I want to be able to 301 redirect from to

I have full access to the servers and have tried various things using .htaccess but have had no success.

The reason for this is because I have a site that was hosted on a subdomain but has since moved to its own domain and I want to redirect any requests to the right place. How would one go about achieving this?

share|improve this question
up vote 2 down vote accepted

It should be just a case of putting something like the following in

redirect 301 /index.htm

Though you can also do stuff with mod rewrite to catch all requests.

share|improve this answer

In your httpd.conf file, inside the vhost that serves

Redirect Permanent /

share|improve this answer

Your Answer


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.