PDA

View Full Version : Re-directing websites



sg01
01-11-2009, 10:09 PM
Hi,
I'm not sure if this is the right place to post this, but I am wondering if it is possible to set it up so that when someone goes to my website domain it automatically redirects them to another website. Pretty much mainly to hide my affiliate link on a website, but also so once I register a few more domain names for the same website I can just link them all. I'm really knew to all this so really confused!
Thank you for any help!

pghcollectibles
01-11-2009, 11:21 PM
there are 3 main ways to do this: htaccess, with a meta tag in the head of the page or with the php header() function. thers probably a bunch more ways but those are really common. i need to get to bed but there are quite a few posts on each of those subjects if you would care to utilize the search function in this forum

jonbeard
01-14-2009, 08:34 AM
If you want to have something like my website where it redirects to forums:

www.ca-forums.com

Then use this code:


<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

Put this between your and Tags in your HTML on the top of the page.

However if you just want a website to go DIRECTLY to your page, and not goto this redirection page as I have shown you, you can go to your cPanel and click on Redirects (Under Domains) near the bottom of your page.

Hoped this help! Good luck!