Can I Redirect a Subdomain ?

caneman

Regular Member
Joined
Jan 29, 2010
Messages
338
Reaction score
93
Noob 101 question, can I setup a subdomain to redirect to another url?

If I do this will the primary domain be affected by the subdomain redirect?

Thanks.
 
yes you can easily setup the redirection for a subdomain or as many as you want and the main domain wont be affected
 
interesting question... any links on HOW to do it? I searched BHW and did not uncover any... tnx in advance
 
@thomansfel thanks... i just want to do a redirect to a cpa link

@aboutbizz your hosting provider should be able to give you all the info you are looking for, just setup a subdomain and then redirect it, its all there in your cpanel
 
u can use simple php redirect
make folder in your websites ftp root (where your index.html and all the other stuff is)
make a folder "cpa"
now u created web address => http://yourdomain.com/cpa/

in windows just make a text file .txt,
put this inside:
<?php

header( 'Location: http://www.cpa-address.com/hello.html' ) ;

?>
now save and rename that file to index.php, upload it to the folder you created and youre done, you can use http://yourdomain.com/cpa/ to redirect people to wherever u want


http://php.about.com/od/learnphp/ht/phpredirection.htm
 
Last edited:
Back
Top