Add to Favorites
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Hardware and Server Configuration > Pointing Domain to specific file on main account
forgot password?


Reply


Old
  Post #1 (permalink)   02-17-2002, 06:17 PM
HD Newbie
 
Join Date: Feb 2002
Location: Ashburn Va.
Posts: 28

Status: HostingDirect is offline
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!
__________________
Curt
Hosting Direct, LLC
Intelligent performance based web solutions!
Hosting & Reseller Services - http://www.HostingDirect.net
 
 
 


Old
  Post #2 (permalink)   02-17-2002, 06:50 PM
HD Newbie
 
Join Date: Feb 2002
Posts: 18

Status: thewitt is offline
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: http://tawinc.net/rock_brochure.htm"); 
exit; 
?>
-t
__________________
www.myostrich.net
OpenSRS Domain Names for Less
 
 
 


Old
  Post #3 (permalink)   02-17-2002, 09:36 PM
HD Newbie
 
Join Date: Feb 2002
Location: Ashburn Va.
Posts: 28

Status: HostingDirect is offline
Quote:
Originally posted by thewitt
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: http://tawinc.net/rock_brochure.htm"); 
exit; 
?>
-t
Thanks! I gave the PHP index.php a shot and it seems to work pretty good so problem solved for now
__________________
Curt
Hosting Direct, LLC
Intelligent performance based web solutions!
Hosting & Reseller Services - http://www.HostingDirect.net
 
 
 


Old
  Post #4 (permalink)   02-17-2002, 11:14 PM
HD Newbie
 
Join Date: Feb 2002
Posts: 18

Status: thewitt is offline
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
__________________
www.myostrich.net
OpenSRS Domain Names for Less
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On