The Candyman
02-09-2002, 05:30 PM
Hello i'm using gearhost.com as my webhost providor, and i wanted to poing my forum insted of
http://www.scooter-posse.com/cgi-bin/ultimatebb.cgi, to forums.scooter-posse.com,
i know i have subdomains on gearhost but it seems that i can only redirect to directorries and not to spacific file.
do you know how it can be done?
In the folder /cgi-bin, write a quick cgi file that outputs a header that redirects the location to ultimatebb.cgi. Then map the subdomain to cgi-bin.
The Candyman
02-09-2002, 06:55 PM
but i'm not sure how to do that, can you explain please.
OverSkilled
02-09-2002, 07:12 PM
Use PHP,
Create the subdomain "forum"
Open Notepad
type
<?
header("Location: FORUMURL");
exit;
?>
Save the file as index.php
upload the file into the forum folder of your website.
And that all should work :]
I'm not sure that you can use PHP in cgi-bin, can you?
OverSkilled
02-09-2002, 07:17 PM
The subdomain isn't located in the CGI-Bin, the folder "forum" which is the subdomain is located in the main part of the website.
forum.overskilled.com = www.overskilled.com/forum
Insert the script into that directory and it will forward to: www.overskilled.com/cgi-bin/board
The Candyman
02-09-2002, 07:17 PM
Yeah you can, thanks alot for your help! :)