Welcome, Guest. Please Login or Register.
April 27, 2025, 10:20:06 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Converters  |  redirection cgi to php « previous next »
Pages: [1] Reply Ignore Print
Author Topic: redirection cgi to php  (Read 2584 times)
oscar2001
Noobie
*
Posts: 39


Australia

WWW
redirection cgi to php
« on: October 01, 2002, 03:35:28 AM »
Reply with quote

G`day :)
Having troubles redirecting my old cgi to php
Ive read through previous posts and have done my best to follow what seems like simple instructions but still cant get it to work.

I have opened my YaBB.cgi file and my pearl path is definatly #!/usr/bin/perl

This is the code I have been playing around with
Quote#!/usr/bin/perl
print "Location:
http://www.worldcichlids.com/yabbse/index.php\n\n";
exit;

Is there something Im overlooking??
Any help would be much appreciated.
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:redirection cgi to php
« Reply #1 on: October 10, 2002, 02:57:46 AM »
Reply with quote

make it print:
<META HTTP-EQUIV="refresh" CONTENT="1; url=http://www.website.com/forum/index.php">

change 1 to whatever second u want before the redirection and url to your new forum url
add <html> and <head> before it, if it wont work
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
BlankCanvas
Noobie
*
Posts: 1


I'm a llama!

Re:redirection cgi to php
« Reply #2 on: November 07, 2002, 08:30:22 AM »
Reply with quote

Can someone help me out by posting a working version of the code as I have tried various version of the above and still connot get anything to work.

Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:redirection cgi to php
« Reply #3 on: November 08, 2002, 07:28:18 AM »
Reply with quote

#!/usr/bin/perl

print "Content-Type: text/html\n\n";
print "<html>\n<head>\n";
print "<title>Redirecting...</title>\n";
print "<meta http-equiv=\"refresh\" content=\"3; url=http://www.yoursite.com/yabbse/\">\n";
print "<style type=\"text/css\">\n";
print "body { font-family: Verdana, Arial, Tahoma; font-size: 12pt; color: midnightblue; }";
print "</style>";
print "</head>\n\n";
print "<body bgcolor=#FFFFE4>\n";
print "<table width=100% height=100%>\n<tr>\n<td>";
print "<center><h1>Forum is upgraded into YaBB SE</h1>\n";
print "You will be redirected to the new forum in 3 secs. :)</center>\n";
print "</td></tr></table>\n\n";
print "</body>\n</html>\n";

just change the "http://www.yoursite.com/yabbse" part
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
malmklang
Noobie
*
Posts: 13


I'm a llama!

Re:redirection cgi to php
« Reply #4 on: January 21, 2003, 07:36:58 AM »
Reply with quote

print "Content-Type: text/html\n\n";
Add that line before the print location line in your YaBB.cgi, then you're good to go :)
Logged
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:redirection cgi to php
« Reply #5 on: February 18, 2003, 04:46:49 PM »
Reply with quote

Spaceman,
The code you suggest above, where in my "old yabb" cgi-bin dir do I put this code to get it to work.

It looks like I overwrite the yabb.cgi file iwth it, is this true?
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:redirection cgi to php
« Reply #6 on: February 18, 2003, 06:19:20 PM »
Reply with quote

Yes that is true.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:redirection cgi to php
« Reply #7 on: February 18, 2003, 10:56:07 PM »
Reply with quote

You could also just make this:

#!/usr/bin/perl
print "Location:
http://www.worldcichlids.com/yabbse/index.php\n\n";
exit;

Into this:

#!/usr/bin/perl
print "Location: http://www.worldcichlids.com/yabbse/index.php\n\n";
exit;

(note that it's all on the same line now...)

-[Unknown]
Logged
splungent
Noobie
*
Posts: 14


I'm a splungeye!

Re:redirection cgi to php
« Reply #8 on: April 23, 2003, 10:45:08 PM »
Reply with quote

Quote from: [Unknown] on February 18, 2003, 10:56:07 PM
You could also just make this:

#!/usr/bin/perl
print "Location:
http://www.worldcichlids.com/yabbse/index.php\n\n";
exit;

Into this:

#!/usr/bin/perl
print "Location: http://www.worldcichlids.com/yabbse/index.php\n\n";
exit;

(note that it's all on the same line now...)

-[Unknown]

Hello,
         I was wondering .... Many people who use my board bookmarked the "View last 10 posts" page that uses the http://www.myhost.com/YaBB.cgi?action=recent  address.  Is there anyway to also direct this to the new board?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:redirection cgi to php
« Reply #9 on: April 23, 2003, 11:13:50 PM »
Reply with quote

Yeah gimme a sec.

*several seconds pass....*

#!/usr/bin/perl -w
print "Location: http://www.worldcichlids.com/yabbse/index.php";
if ($ENV{'QUERY_STRING'} ne "")
  print "?" . $ENV{'QUERY_STRING'};
print "\n\n";
exit;

*Should* work... do note that my Perl is a bit rusty.

-[Unknown]

Logged
splungent
Noobie
*
Posts: 14


I'm a splungeye!

Re:redirection cgi to php
« Reply #10 on: April 23, 2003, 11:52:26 PM »
Reply with quote

Thanks unknown!
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Converters  |  redirection cgi to php « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.033 seconds with 16 queries.