Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (isaac), 88 guests, and 236 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Basil
Basil
New Mexico
Posts: 732
Joined: August 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Ruben 10
Gizmo 9
Morgan 3
Geoff 3
Slaz 2
FREAK 2
DennyP 1
Latest Photos
Test
Testing to drag photos
Comfortable Cats
Test
BSA photos
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
S
sw55  Offline OP
newbie
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
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,205
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 // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.6.2 Released

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
[7.6.2] Deutsch/German (UBB.threads 7.6.2)
by pandama. 09/25/18 08:04 PM
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Forum Statistics
Forums36
Topics35,141
Posts191,447
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2