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

I'm not sure if this is called "redirecting" but what I'm trying to do is set up a web server to automatically forward one address to another.

For example: http://www.homeserver.com/hi/ actually redirects the user to http://www.google.com

share|improve this question
add comment

2 Answers

It is. httpd has the Redirect directive for simple cases like this, or you can use mod_rewrite if you need something more complex.

share|improve this answer
add comment

Make this your default document..

<html>
<head>
<meta http-equiv="REFRESH" content="0;url=http://gohereinstead.com">
</HEAD>
</html>
share|improve this answer
    
Techinically speaking, this solution would work. It's not the most desirable, though, due to needing to maintain a DocumentRoot and single html file for the vhost. Ignacio's solution above does not require a DocumentRoot. –  EEAA Jun 25 '10 at 4:46
add comment

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.