|
View previous topic
::
View next topic
|
| Author |
Message |
brookie
Joined: 24 Apr 2007
Posts: 55
Location: Perth, Western Australia
|
Posted: Tue Sep 25, 2007 8:06 am
Post subject: url redirect/forwarding
|
|
|
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 |
|
 |
inet411
Joined: 22 Nov 2008
Posts: 8
|
Posted: Sun Nov 23, 2008 1:26 am
Post subject:
|
|
|
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 previous topic :: View next topic |
|