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/0710:42 PMRe: Changing from a 302 to a 301 redirect in ultimatebb.cgi
[Re: doug]
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).
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.
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.
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.
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).