Top Articles

Stay In Touch


Affiliate Marketing Forum

FAQ FAQ Search Search Memberlist Memberlist Usergroups Usergroups
Register Register Profile Profile Log in to check your private messages Private Messages Log in Log in

url redirect/forwarding

Affiliate Marketing Forum Index » Do-It-Your-Selfers
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
brookie



Joined:
24 Apr 2007

Posts:
55

Location:
Perth, Western Australia

Post Posted: Tue Sep 25, 2007 8:06 am
      Post subject: url redirect/forwarding

Reply with quote

Hi

I have recently bought a domain name and put it on as an addon domain in cpanel, say 123.com for example.

I would like to have this addon domain name redirected or forwarded to my clickbank link that I will be promoting until I get my website page created.

Does anyone know how I can do this. In itself the addon domain 123.com is its own website address, but when I go into cpanel to redirect it doesnt give me the option to redirect that domain as it defaults to the first domain name I set up, say abc.com?

Any help much appreciated. Thanks.
_________________
Free Trial for Site Build It
Back to top View user's profile Send private message Visit poster's website
inet411



Joined:
22 Nov 2008

Posts:
8


Post Posted: Sun Nov 23, 2008 1:26 am
      Post subject:

Reply with quote

I know this post is over a year old but maybe this will help someone else.

There is a note in cpanel:
Hint: This feature must be enabled for your account before you can use it. Addon Domains will not be functional unless the domain name is registered with a valid registrar and configured to point to our DNS servers.

So if your host does not have this enabled you will not have the option to redirect your site.

If you have cpanel you have php.
I would set up the domain as a normal domain (not an addon) and simple put this into your .htaccess file:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://domaintoredirectto.com/$1
[R=301,L]

So anything i.e. http://abc.com/blah will go to domaintoredirectto.com/blah

If you do not have an .htaccess file you can do a php redirect:
Code:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://domaintoredirectto.com" );
?>
Back to top View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic
Affiliate Marketing Forum Index » Do-It-Your-Selfers
Page 1 of 1 All times are GMT

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Newsletter Sign-up

Sign-up Now!

How to make $1000 a month from scratch

Sign-up for our newsletter and receive our 77 page eBook "How to make $1000 a month from scratch".

Best of all it's FREE!

Your Host

Allan Gardyne

Learn from an affiliate veteran.

Your host, Allan Gardyne, has been earning a good living from affiliate programs since 1998.

Want a BETTER article writer? We will write good articles just for you.

Content Kingdom