?
Solved

Soft 404's

Posted on 2011-03-15
3
Medium Priority
?
269 Views
Last Modified: 2012-05-11
windows 2003, railo 3.1, apache, mysql 5.1

I submitted my sitemap, a cfm template that querys my property listings database and outputs the listing url's in xml format, so it stays updated, through google webmaster tools and a few days later checked in to find some crawl errors "soft 404" these were property listings in my database that we no longer active. I guess google had a look at the sitemap then actually crawled the url's the next day, otherwise the sitemap should be current as it is generated dynamically when called. My question is how can I stop these "soft 404" errors? and how can I use cfml to redirect to a page with a custom error message? right now if you hit one of these "soft 404" pages it is just a blank page that returns a 200 but should actually be a 404

Any help is greatly appreciated!
0
Comment
Question by:Bang-O-Matic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:dwkd
ID: 35143369
you can determine if it is still valid using cfhttp  
so send http request and based on the response redirect page
0
 
LVL 6

Accepted Solution

by:
billfusion earned 2000 total points
ID: 35144009
The way I dealt with this exact problem was to display the property listing as inactive.  I then listed other properties that had similarities to the property in question.  If you no longer have access to that listing due to its removal from your database, you can generate a message mentioning that the listing is not longer available or active, then either give some contact info or list your search screen.

Since you're already generating a valid page (code 200), you must have some process handling your 404 errors and displaying the blank page.  That's where you need to insert code to handle the error per the discreption above.
0
 

Author Comment

by:Bang-O-Matic
ID: 35175450
"you can generate a message mentioning that the listing is not longer available or active, then either give some contact info or list your search screen." that sounds like the solution I want, but I'm not sure how to handle that.   I guess just query that listing:

<cfif myQuery.RecordCount is "0">"Property off the market"<cfelse> display the property

 I like your idea about displaying similar properties but I dont see how that would be possible?.. since my database is updated daily with only active listings.

0

Featured Post

Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question