Previous Thread
Next Thread
Print Thread
Rate Thread
#109535 10/27/2002 3:05 PM
Joined: Jan 2001
Posts: 53
Member
Member
Offline
Joined: Jan 2001
Posts: 53
no sure if this is the right forum, so if its wrong, feel free to move it

I have a "intro" page, it contains a flash movie, that redirect to my board

well we thought it time we had somewhat of a homepage for the commuinty, thus created a HTML homepage

Well the Flash movie redirected to Ulitmate.cgi when i ran UBB5.47d

The with upgrade to UBB 6.10, i had to change it, the only problemi have is, i had lost the FLA file, thus couldnt change it, No worries, i will just edit the Ulitmate.cgi file to redirect to ultimatebb.cgi with no pause and no writing (the file came with the upgrade zip, i edited the writing out and the time delay)

No i have tried to edit the Ultimate to redirect to the new HTML homepage address, mysite/tkz.html

The page comes back as a error, the page is there and working

the only reason i can see for this is :

it directs outside the cgi folder (is this a problem????)

it directs to a html file (is this a problem????)

here is the code
HTML>
HEAD>
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-user-defined">
meta http-equiv="Refresh" content="0; URL=http://www.mysitesURL.co.uk/cgi-bin/ultimatebb.cgi">
META NAME="Author" CONTENT="UBB">
META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (Win95; I) [Netscape]">
TITLE>Bulletin Board Moved!/TITLE>
/HEAD>
BODY>
/BODY>
/HTML>
*************************************
removed the starting < on all code, so it will show here
*************************************
i edited the mysiteURL.co.uk to mysiteURL.co.uk/tkz.html

all advice greatly recieved smile
thanks
matt

Sponsored Links
#109536 10/28/2002 1:25 AM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
You said you get an error, but what is the error code and/or description of the error?

#109537 10/28/2002 7:49 AM
Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
Yes the error part is not clear... The code is right.

#109538 10/28/2002 9:25 AM
Joined: Jan 2001
Posts: 53
Member
Member
Offline
Joined: Jan 2001
Posts: 53
This is the changed code

HTML>
HEAD>
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-user-defined">

META NAME="Author" CONTENT="UBB">
META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (Win95; I) [Netscape]">
TITLE>Bulletin Board Moved!/TITLE>
/HEAD>
BODY>
/BODY>
/HTML>

The error i get is 500

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

--------------------------------------------------------------------------------

Apache/1.3.22 Server at mysiteURL.co.uk Port 80

thanks
matt

#109539 10/28/2002 9:42 AM
Joined: Jan 2001
Posts: 53
Member
Member
Offline
Joined: Jan 2001
Posts: 53
i have added a "SKIP INTRO" HTML text, which goes to the right page, so now a few of the visitors arrive at the right place smile

still a mystery why the .cgi file doesnt work though

Sponsored Links
#109540 10/28/2002 11:36 AM
Joined: May 2000
Posts: 1,356
Addict
Addict
Joined: May 2000
Posts: 1,356
500 ISE means nothing... it can be anything. But the main reason is forgotten headers... Your script must be something like this;

print <Content-type:text/html


.
.
.
.


REDIRECT

exit;

etc...

also chect the perl path. and if you want to see the error add this after perl path:

BEGIN { use CGI::Carp 'fatalsToBrowser'; }

#109541 11/02/2002 5:38 PM
Joined: Jan 2001
Posts: 53
Member
Member
Offline
Joined: Jan 2001
Posts: 53
Still get the error message with the changed code frown

#109542 11/02/2002 6:10 PM
Joined: Jan 2001
Posts: 53
Member
Member
Offline
Joined: Jan 2001
Posts: 53
SORTED smile smile

#109543 11/03/2002 1:55 PM
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Here is what I use.

Code
#!/usr/bin/perl

# I N S T R U C T I O N S
# Change the $newurl value to your new UBB URL
# do not move or change the 'quotes' or final semicolon

# CHANGE THIS VALUE BEFORE UPLOADING IN ASCII

$newurl = 'http://www.hostboard.com/cgi-bin/ultimatebb.cgi';

print ("Content-type: text/htmlnn");

print<<THIS;

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-user-defined">
<meta http-equiv="Refresh" content="2; URL=$newurl">
<META NAME="Author" CONTENT="UBB">
<META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (Win95; I) [Netscape]">
<TITLE>Bulletin Board Moved!</TITLE>
</HEAD>
<BODY>

<UL><FONT FACE="Arial,Helvetica"><FONT SIZE=+1></FONT></FONT> <FONT FACE="Arial,Helvetica"><FONT SIZE=+1></FONT></FONT>



<FONT FACE="Arial,Helvetica"><FONT SIZE=+1>Hostboard has moved
to our new software platform located at</FONT></FONT><FONT
FACE="Arial,Helvetica"><FONT SIZE=+1></FONT></FONT>



<FONT FACE="Arial,Helvetica"><FONT SIZE=+1><A HREF="$newurl">$newurl</A></FONT></FONT>

<FONT FACE="Arial,Helvetica"><FONT SIZE=+1><A HREF="$newurl"></A></FONT></FONT> <FONT FACE="Arial,Helvetica"><FONT SIZE=+1></FONT></FONT>



<FONT FACE="Arial,Helvetica"><FONT SIZE=+1>Please Update your bookmarks</FONT></FONT><FONT FACE="Arial,Helvetica"><FONT SIZE=+1></FONT></FONT>



<FONT FACE="Arial,Helvetica"><FONT SIZE=+1>Click <A HREF="$newurl">here</A>
if your browser does not take you there automatically in a  few seconds.</FONT></FONT></UL>

</BODY>
</HTML>

THIS

exit;


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)