iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2006, 09:59 AM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default 404 status code for non existant dynamic pages?

Hi,

I've seen this topic discussed before on other messageboards but never seen a definitive answer so i'm asking the experts.

I'm in the process of developing a product database for one particular client. Needs all the usual toys (manage products / images etc) so all the product pages are database driven. I have one php page that has a product id passed as a parameter, based on that id the correct content is displayed, or if that product id doesn't exist a message is displayed to that effect.

Background information over, here is my question. Should my php page return a 404 status code for any page loads with invalid product id's? Although the php page itself still exists the product trying to be viewed doesn't.

Another reason for asking this is i'm currently playing with mod_rewrite to make all the dynamically generated pages look like a static link. E.g.

/product/1.html becomes /product.php?pid=1

etc. So from an external users viewpoint these will appear to be seperate html pages, and a non existant page should return the 404 status code.

Anyway sorry for the rambling just trying to get all the information out. What is everyone's view on the topic?

Thanks in advance
Mike
Reply With Quote
  #2 (permalink)  
Old 06-09-2006, 06:35 PM
RegDCP's Avatar
WebProWorld Pro
 
Join Date: Oct 2005
Location: Courtenay BC
Posts: 222
RegDCP RepRank 0
Default

I just tried a link to a product that does not exist on my database driven site and got a full page that had the message "Product not found!" in the main body.

Reg
__________________
http://DotCom-Productions.com Website Management
http://0Grief.com Budget PHP/MySQL hosting
Reply With Quote
  #3 (permalink)  
Old 06-09-2006, 06:39 PM
advancedmerchant's Avatar
WebProWorld Pro
 
Join Date: Aug 2003
Location: Fullerton, CA
Posts: 169
advancedmerchant RepRank 1
Default

From a pure user convenience and site sales perspective, you should display a notice that that product is no longer available, or cannot be found, but then display the page of the CATEGORY it came from, so the purchaser can see similar products to select from that DO exist.

I buy EVERYTHING online, and sites that do this sort of thing, like AMAZON keep my business. When I click on a paperback that is not in stock, they show me the hardcover, I usually buy it. When I click on a pair of sandals and they are no longer available, they show me others that I do buy.
__________________
Accept Credit Cards Anywhere!
www.merchantanywhere.com
Reply With Quote
  #4 (permalink)  
Old 06-09-2006, 06:51 PM
WebProWorld New Member
 
Join Date: Oct 2005
Location: USA
Posts: 13
Scout RepRank 0
Default 404 Error Page

I would not suggest you use 404's for anything. Makes the customer think your web site is not functioning properly.

Always display a message to explain to the customer why they are not getting what they asked for.

My 2 cents.
Reply With Quote
  #5 (permalink)  
Old 06-09-2006, 07:09 PM
WebProWorld Member
 
Join Date: Dec 2004
Posts: 28
thrashmangler RepRank 0
Default NO BLANK PAGES

Dont ever have a blank page with server info SCOUT is right it gives the enduser the impression of a poorly run business. YOUR website is your online image, would have a half assed sign in front of your shop, NOT.
Reply With Quote
  #6 (permalink)  
Old 06-09-2006, 07:48 PM
WebProWorld Pro
 
Join Date: Feb 2004
Location: Varna
Posts: 202
arpecop RepRank 0
Default

the simple answer is
Code:
<?php
header("HTTP/1.0 404 Not Found");
?>
__________________
Read the forum rules about signatures
Reply With Quote
  #7 (permalink)  
Old 06-09-2006, 07:54 PM
WebProWorld Pro
 
Join Date: Feb 2004
Location: Varna
Posts: 202
arpecop RepRank 0
Default

u can also use additional tools like this one

http://www.webconfs.com/http-header-check.php

checking your header information
other solution is to add nofollow in robots.txt
404 pages may hurt your ranking
__________________
Read the forum rules about signatures
Reply With Quote
  #8 (permalink)  
Old 06-10-2006, 06:57 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,643
TrafficProducer RepRank 4TrafficProducer RepRank 4TrafficProducer RepRank 4
Default page return a 404 status code

Quote:
page return a 404 status code
After 2 or thre bad links they, (and search engines), will give up and move to another site.

This is, in my humble view, one of the last things you should do.

Send users to a Help Page;

e.g. Similar to:-

Sorry we have not found that item. Here are some similar items or try searching on.

1:aaa Link
2 bbb Link

and so no…

Or contact us at…
Reply With Quote
  #9 (permalink)  
Old 06-10-2006, 01:27 PM
WebProWorld Pro
 
Join Date: Feb 2004
Location: Varna
Posts: 202
arpecop RepRank 0
Default

Im completely lost ... can u be more clear in your question
__________________
Read the forum rules about signatures
Reply With Quote
  #10 (permalink)  
Old 06-11-2006, 06:23 PM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

Hi everyone, thanks for all the replies received so far. Thought I had explained clearly but i'll attempt to expand on the problem.

I have no intention of delivering a blank page / server error page or such like, and I currently do serve a custom page to non existant products informing the user of the problem. However this could be looked on as a custom error document and i'm wondering whether this page should return with a 404 status code, similar to that of any other custom error document.

As mentionned previously my main reason for asking is that with using mod_rewrite the product pages would look like completely seperate pages i.e. product/1/33.html. If this page wasn't present the SE's would expect the correct error code to be returned.

Hope this clears things up

Regards
Mike
Reply With Quote
  #11 (permalink)  
Old 06-13-2006, 05:16 AM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

Anyone got any more ideas on the topic?
Reply With Quote
  #12 (permalink)  
Old 06-16-2006, 12:10 PM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

couple of days and no more replies, i take it nobody has any experience with this then??

Thanks in advance
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:55 AM.



Search Engine Optimization by vBSEO 3.3.0