Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 61 guests, and 251 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Gizmo
Gizmo
Portland, OR; USA
Posts: 16,931
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 18
Gizmo 13
Ruben 10
Morgan 6
BB 2
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
Http status 404 if topic not found #261197
02/26/18 03:09 PM
02/26/18 03:09 PM
Joined: Nov 2008
Posts: 28
S
sw55 Offline OP
newbie
sw55  Offline OP
newbie
S
Joined: Nov 2008
Posts: 28
I noticed that if I have a link to a forum topic that is not found (e.g. has been deleted), the page gives status code 200 (OK). I would like it to give a 404 status. Any suggestions?
I am running 7.5.7 on php 5.3.3.
Here is an example of the page.
http://www.pgmusic.com/forums/ubbthreads.php?ubb=showflat&Number=559283

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."
Re: Http status 404 if topic not found [Re: sw55] #261198
02/26/18 03:13 PM
02/26/18 03:13 PM
Joined: Apr 2004
Posts: 1,172
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,172
California
upgrade to a current UBB.threads 7.6.x version.

it's built in since version 7.6.0.
https://www.ubbcentral.com/forums/u...-0-changelog-not-yet-released#Post258618

from the 7.6.0 changeling:
Quote
Added server status error codes ("404 Not Found" or "401 Unauthorized") for when content doesn't exist or the link is unauthorized to that user/spider. Also added "noindex, nofollow" robot tags to those 404/401 pages.


isaac @ id242.com // forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Changelog

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Control Panel / Transactions Username
by Morgan. 06/20/18 05:38 AM
Custom Insert won't save
by Baldeagle. 06/18/18 07:44 PM
New Image capabilities ver 7.6.1
by Abbott. 06/14/18 02:28 PM
Thread deleted?
by Lisanne. 06/05/18 11:13 AM
random 500 server errors on post
by Bad Frog. 05/31/18 09:34 AM
Forum Statistics
Forums36
Topics35,122
Posts191,329
Members12,086
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)