Forum Moderators: phranque

Message Too Old, No Replies

404's and 410's for forum installation

         

Asia_Expat

5:25 am on Jun 26, 2007 (gmt 0)

10+ Year Member



I have an Invision forum installation that I have done a pretty good job of optimising. However, I've been mulling over how I can get my server to produse 404 and 410 headers for forum error pages for topics that have been deleted etc etc but I've drawn a blank. I just can't think how to do it.

Can you suggest a way for me to do that? Is there anything I could perhaps drop into the skin template on error pages that would trigger my server to produce the correct response?

pageoneresults

7:18 am on Jun 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you suggest a way for me to do that? Is there anything I could perhaps drop into the skin template on error pages that would trigger my server to produce the correct response?

Interesting you should bring this topic up. My team and I were discussing this just yesterday.

We've built a cart and are looking at the technical intricacies of returning the proper server headers. What we've decided to do is set up a system that allows the user to specify the status of the product. From that status, the server header is generated. It could be a 301, 302 or 410. The SE's have stated that they basically handle a 410 the same as a 404 which is wrong. But, if they ever do decide to handle it properly, I'll be that much further ahead.

If I delete a product and know that product will never return to that resource URI, then it is 410 Gone. Request it once, get the 410, and never request it again.

Asia_Expat

8:03 am on Jun 26, 2007 (gmt 0)

10+ Year Member



Well, at the moment, if a topic is deleted, the URI remains there with a 200 response and the error page is produced, stating to the user that the topic is gone but telling the search engines that it is still there... so the topic remains indexed forever, with the topic gone and the error page in it's place, with a 200 server response. I don't know how I can change that to something more appropriate.

[edited by: Asia_Expat at 8:04 am (utc) on June 26, 2007]

pageoneresults

8:44 am on Jun 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Windows or Linux?

I believe the standard method would be to serve a custom 404. The bot gets a 404, the user gets a friendly page with destination options.

Asia_Expat

9:03 am on Jun 26, 2007 (gmt 0)

10+ Year Member



Linux

Yes, I want to use the custom 404 but how to automatically direct deleted topic to a 404 page... the forum software just leave the topic address online and says 'This topic has gone' to the user but says 200 to the bots. I can't set up an individual redirect for each topic that gets deleted, it would be a nightmare.

pageoneresults

9:17 am on Jun 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



the forum software just leave the topic address online and says.

Open Source forum software? If so, there is probably a plugin for your requirements. Have you read the forum docs to see if they've already covered how to do that? Usually if it is a popular forum software, someone has a solution. ;)

Asia_Expat

9:26 am on Jun 26, 2007 (gmt 0)

10+ Year Member



It's Invision Power Board forum and I've been trawling through the various support forums and can find nothing :(
This was why I was wondering if there is some magic piece of HTML that I could drop into the forum generated error page to make it produce the correct header.