Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
4 registered members (TheBrit, Zarzal, Gizmo, isaac), 49 guests, and 216 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 23
Joined: December 2012
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 18
isaac 14
TheBrit 10
SteveS 8
Zarzal 6
Morgan 5
Ruben 4
jorb 4
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 02:09 PM
02/26/18 02: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 02:13 PM
02/26/18 02:13 PM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,243
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
update multilanguage site problem
by Zarzal. 12/15/18 04:20 PM
Char coding utf-8 and older forums
by Zarzal. 12/15/18 03:59 PM
table issue
by TheBrit. 12/13/18 06:05 PM
testing table layout
by TheBrit. 12/13/18 11:16 AM
header.php after update from 7.5.x to 7.6.x
by Zarzal. 12/12/18 05:29 AM
Forum Statistics
Forums36
Topics35,180
Posts191,677
Members12,122
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2