Advice Articles

  • Beginners
    Just getting started? Loads of powerful advice here for beginners.
  • Intermediate
    Got a handle on the basics? Find more advanced topics covered here.
  • Advanced
    Warning! Advanced topics covered here.
  • Affiliate resources
    Affiliate marketing resources for affiliates and affiliate program managers tools, websites, books and articles.
  • Product reviews
    Candid reviews of the latest products to take you to the next level.


 

Affiliate Marketing Forum

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups   RegisterRegister ProfileProfile  Log in to check your private messagesPrivate Messages Log inLog 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: 54
Location: Perth, Western Australia

PostPosted: 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: 9

PostPosted: 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 All times are GMT
Page 1 of 1

 
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





Your host: Allan Gardyne.
Earning a good living from affiliate programs since 1998.