Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (capnbob, id242, johnH, Mike L), 41 Guests and 19 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/12/04
Posts: 154
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#180412 - 03/09/07 10:34 PM Changing from a 302 to a 301 redirect in ultimatebb.cgi
doug Offline
member
Registered: 01/24/07
Posts: 170
In the redirect version of ultimatebb.cgi to redirect from Classic 6.72, I need to use the choice...

# 0 - Don't send a 301/302 header, my webserver does this. (Enable this if 301/302 results in an ISE or blank page)

... When this is selected, a 302 redirect results. I would like to change this to a 301 - does anyone know how I would do this?
_________________________
UBB user since 1998
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#180416 - 03/09/07 10:42 PM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: doug]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
If you want to use a 302 redirect, change the redirect line:
$redirect = 302;

If you don't want to use one, you'll need to comment out the redirect codes (keep in mind i'm using an old version, and i am not sure if the latest build doesn't allow you to turn it off with a simple tick).
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#180417 - 03/09/07 10:52 PM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: Gizmo]
doug Offline
member
Registered: 01/24/07
Posts: 170
Apparently the "0 - Don't send" choice is used when $redirect=301 (or 302) returns a blank page.

Since I get a blank page in the browser when I use that $redirect=301 setting, I am trying the "0" setting - "Don't send a 301/302 header, my webserver does this. (Enable this if 301/302 results in an ISE or blank page)" setting.

It works- there is a redirect and no blank page. The problem is that it is a 302 redirect which is not search engine friendly so I would prefer to use a 301.

What I need to know is how I go about making that change so using the "0"' setting results in a 301 redirect instead of a 302.
_________________________
UBB user since 1998
Top
#180418 - 03/09/07 11:01 PM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: doug]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Some web server pre-send a header with cgi files; which makes it so you can't set a forward type in the header; it's really quite odd; basically just disable the sending of any header type in the cgi importer.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#180419 - 03/09/07 11:45 PM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: Gizmo]
doug Offline
member
Registered: 01/24/07
Posts: 170
I just simplified - I redirected in .htaccess \:\)
_________________________
UBB user since 1998
Top
#180420 - 03/10/07 12:11 AM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: doug]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Well, I guess that would work if you just want to redirect requests; the key thing of the importer is to use the import map to redirect incoming users to the proper threads.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#180454 - 03/10/07 08:02 PM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: Gizmo]
doug Offline
member
Registered: 01/24/07
Posts: 170
With search engines nowadays, a 302 redirect creates more problems than it solves. A 301 is far better even without users being redirected to the proper threads. That will only be short term as with a 301 search engines will soon spider the new urls and drop the old. That doesn't happen with 302 and that affects the ranking of the new urls (and ultimately the new board).
_________________________
UBB user since 1998
Top
#180455 - 03/10/07 11:35 PM Re: Changing from a 302 to a 301 redirect in ultimatebb.cgi [Re: doug]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
You should have been around when we where argueing about the redirectors lol; specifying them in the file was the only real solution ;)...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image