Pointing 1 domain name to another site


Q: How do I pont one domain name to another domain name with .htaccess ??

A:  The smoothest way to redirect your visitors is to use an .htaccess redirect. This has no delay since before a page is served to the browser the server checks first for an .htaccess file... if it sees this the old page never loads, instead visitors are sent directly to the new page.

If you're more technically minded than I am and want the information straight from the source, check the Apache Tutorial: .htaccess files for more detailed info.

Important notes about htaccess redirection

  • Always be sure to upload .htaccess files in ascii mode, sending it up as binary will break it (and usually make your server very, very unhappy.)
  • Make sure your ftp program will show .htaccess files (FileZilla does and is free) It is a bit hard to edit something you can't see ;)
  • Double check that you're not overwriting an old one (some servers already place one there for your custom 404 pages etc.)

Instructions

Open notepad and add this line of text at the top.

Redirect 301 / http://www.example.com/

Save the text file as htaccess.txt

Upload the text file to the root directory of the web site you are trying to redirect.

rename the file .htaccess    - yes that is a "." before htaccess and nothing after htaccess

You're all set. 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is a CNAME

Short for canonical name, also referred to as a CNAME record, a record in a DNS database that...

What is an IP Address

An identifier for a computer or device on a TCP/IP network. Networks using the TCP/IP protocol...

Advertising On My Site

Q. Will you place ads on my site?A. We will NOT place ads on your site. Q. Do you allow sites to...

Adding Additional Domain To Your Account

How To Setup An ADDON DOMAIN! If you are trying to addon a domain that is already registered...

Understanding IP Addresses

Every computer that communicates over the Internet is assigned an IP address that uniquely...