Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

detecting of no existing albums and sending 404 header!!!
https://www.tinywebgallery.com/forum/viewtopic.php?f=3&t=2688
Page 1 of 1

Author:  fondlyPiranha [ 24. Aug 2010, 12:54 ]
Post subject:  detecting of no existing albums and sending 404 header!!!

the problem:

search engines are trying send parameters in their requests witch are not existing in the system. So the engines are detecting sites witch are responding on each request a 200 ok header.

such sites mostly become bad rated. sites responding a 404 header in case of responding at invalid request parameters are rated much better

you twg is build so that it is responding in case of requests like eg this:
Quote:
/index.php?twg_album=syzjrryexhjx


a header 200 ok - although - the album (directory) "syzjrryexhjx" doesn't exists.

The twg for such cases is informing admittedly the user about fact of no existing album - but the search engine became no info in form of response 404 "file not found" but 200 OK - so the search engines are collecting hundreds of bad links to the twg - site.

All that sites have the same content - the information about no existing album and instructions about handling this error.

a mass of sites with the same content nevertheless matters that search engines will possible excluding the website from index.

the solution would be, to check before sending the first response header or output to the client, if the sent by client request is valid and sending a 404 header in case of invalid request.

Author:  TinyWebGallery [ 24. Aug 2010, 17:11 ]
Post subject: 

how should I make a difference between a valid and an invalid request?

If a user has e.g. an old bookmark then he gets a 404?

Or do you mean that I should send 404 as response code and still display my album not found page?

- Michael

Author:  TinyWebGallery [ 24. Aug 2010, 22:43 ]
Post subject: 

Hi,

I have added the 404 response. Do you want to test this version?
Please send me an e-mail then.

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/