+ Reply to Thread
Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By misson

Thread: Dynamic 410 Gone away file?

  1. #1
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    Dynamic 410 Gone away file?

    I have now over 350,000 images in my search engine index.

    Additiionally, there is a cron job that checks them every so often to ensure they are still there.

    If the image doesn't exist anymore, the database entry is deleted.

    The problem is the dynamically created page still theretically exists - without the correct content. I have coded in a php script hat asks if the image id (view_image.php?imageid=4563487563475whever) requested from the url exists and if not returns a message saying the resource is no longer available.

    The search engines still index it as it does not return a 404 or 410 error.

    Is there a way to send a header or something that returns a 410 error (gone away)??

    I know this is probably a tricky one but it could be very useful to a lot of people.

    Thanks

    Rich
    Last edited by learning_brain; 07-28-2011 at 07:19 AM.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Dynamic 410 Gone away file?

    Use whatever your language of choice has to set HTTP response headers to set the status. For example, in PHP:

    PHP Code:
    header('HTTP/1.0 410 Gone'); 
    learning_brain likes this.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    Re: Dynamic 410 Gone away file?

    That was simple - thanks

+ Reply to Thread

Similar Threads

  1. Dynamic div id
    By torwald.lung67 in forum Programming Help
    Replies: 0
    Last Post: 03-12-2011, 06:15 AM
  2. Dynamic Sig
    By DefecTalisman in forum Off Topic
    Replies: 20
    Last Post: 09-30-2007, 03:29 AM
  3. Dynamic Drive and PHP
    By jensen in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 04-17-2006, 03:59 AM
  4. [OFF] Dynamic Sig
    By Brandon in forum The Marketplace
    Replies: 0
    Last Post: 03-19-2006, 12:16 PM
  5. Dynamic Sig
    By Brandon in forum The Marketplace
    Replies: 11
    Last Post: 02-12-2006, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers