PDA

View Full Version : Changing Ultimate.cgi of the UBB


05-28-2000, 02:22 PM
How do I modify it to redirect to my VB URL?

05-28-2000, 03:41 PM
I believe you can just make a new file and call it forumsummary.cgi, and Ultimate.cgi and upload in place of your existing ones.

#!/usr/bin/perl
print "Location: http://www.yourdomain.com/forums/\n\n";


Or even easier you can just use a .htaccess file to redirect all calls for files inside of your ubb/ubbcgi directories to the new forum

05-28-2000, 04:49 PM
What we did was make an .htaccess file that redirected all 404's to the new forum's index page, and then deleted everything in the ubb and ubbcgi directories, leaving only the .htaccess. Backup your data first though. :)

05-28-2000, 05:26 PM
May I have a sample of your htaccess file?

05-28-2000, 05:51 PM
ErrorDocument 404 http://www.were-here.com/forums/index.php


Just point it wherever you would like the it to go to:)

This only works on UNIX not NT, and make a good backup of your UBB before you delete, just in case:D



[Edited by werehere on 05-29-2000 at 02:52 AM]

05-28-2000, 11:02 PM
Originally posted by theprof
How do I modify it to redirect to my VB URL?

I did it this way.

move Ultimate.cgi to something else, like Ultimate.cgi.safe

Create a new file, Ultimate.cgi, and put this in it:


#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>\n";
print "</TITLE>\n";
print "<meta http-equiv=\"Refresh\" content=\"0; URL=/forum/index.php\">\n";
print "</HEAD>\n";
print "<BODY>\n";
print "<H3>The URL For the Forums has been changed. You should be automatically redirected to the new pages. If your Browser doesn't automatically forward you, click <A HREF=\"/forum/index.php\">Here</A> </H3>\n";
print "</BODY>\n";
print "</HTML>\n";


Let's them know they're being redirected and gives them a manual method in case their browser for some reason doesn't like refresh/redirect's.

Remember: Those \'s are needed to escape the ""'s!

Katherine