Website Setup & Info

ID #1085

How do I redirect my domain to another?

There are numerous ways to redirect your domain - a javascript redirect, a meta refresh, or an Apache level Redirect directive.  We'll cover the latter here.

The first step is to ensure your domain is pointing at GeekISP.  For that, set your nameservers as described here.

Next, you'll want to create a .htaccess file telling Apache to redirect visitors to the desired site.  For example:

$ echo "Redirect / http://www.google.com/" > ~/www.mydomain.com/htdocs/.htaccess

So in the above example, any traffic to the root of your site (i.e. http://www.mydomain.com/) would be redirected to Google.

Tags: -

Related entries:

Last update: 2010-11-07 09:31
Author: Dave Steinberg
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry