Pointing Domain to specific file on main account

HostingDirect

New member
I have an active domain tawinc.net on my cpanel box and I have a 2nd domain tawrock.com that needs to be pointed to a specific file within tawinc.net "http://tawinc.net/rock_brochure.htm" . I have figured out how to point the whole tawrock.com to a sub directory but I have not figured out how to just park and point it to the specific file.

Any ideas?

Thanks!
 
You can use an apache rewrite or redirect rule in a .htaccess file in your subdirectory, or simply put an index.php file in that subdirectory that does a:

Code:
<? 
header ("Location: [url]http://tawinc.net/rock_brochure.htm[/url]"); 
exit; 
?>

-t
 
thewitt said:
You can use an apache rewrite or redirect rule in a .htaccess file in your subdirectory, or simply put an index.php file in that subdirectory that does a:

Code:
<? 
header ("Location: [url]http://tawinc.net/rock_brochure.htm[/url]"); 
exit; 
?>

-t

Thanks! I gave the PHP index.php a shot and it seems to work pretty good so problem solved for now :)
 
The other trick here would be to put the Location: header in a frame if you wanted the original URL to be preserved in the browser's address bar.

-t
 
Top