Subdomain redirection problem

ZeroFill

Active Member
May 4, 2003
28
0
151
Originally posted by fog
I am trying to make whatever.domain.com redirest to http://template.whatever.net/index.cfm?tid=11111

When I surf to the sub domain it tries to access http://template.whatever.net/index.cfm?tid=11111 instead which returns an error. How do I fix this?
1. remove redirection from cPanel
2. add index.php to /whatever/ directory
3. type this in index.php
PHP:
<?php
header("Location: http://template.whatever.net/index.cfm?tid=11111");
?>
now whenever someone types whatever.domain.com, the php script will redirect them to http://template.whatever.net/index.cfm?tid=11111

cPanel.net Support Ticket Number: