SEOidiot

Follow me

Hello there

To me it looks like this may be your first time here. If you like why not Follow me.
You might also like to find out a bit more about me

Friendly 404 page for SMF Forums

August 1st, 2008

One of the other issues I needed to sort out when I bought My Affiliate Marketing Forum – Affearners was to sort out the wierd 404 the site was serving.

As you will know a 404 is served when the page doesnt exist but for some reason when I took over the forum it was trying to send these requests through to a page called 404.shtml and looping it round and round… Not great really.

So to sort that I decided I would implement a more friendly 404 page. To do this I opened up the .htaccess file in the root of the domain (If you dont already have a .htaccess file there just create a file with that as the name – yes it does start with a . and no file extension!)

In that .htaccess file we add this line: -

ErrorDocument 404 http://www.----escape_autolink_uri:c6b9723d6f5eae4cea3e6878d207df83----.com/404-error-page.php

Obviously you would change that domain to your own (Dont send me your 404 errors!)

This then allows me to create a nicer more friendly page to show people that the file didnt exist rather than simply returning a 404 error to the browser.

This is what that page looks like: -

Friendly 404 page for SMF Forums

This looks a bit better I think.

One last thing, you still have to make sure that this friendly page issues a 404 header to the search bots or you will just be serving a lot of duplicate pages for no reason!

Heres how you do that with PHP: -

< ?php header("HTTP/1.0 404 Not Found"); ?>

This has to go at the top of the page before anything outputs to the browser.

Hope that helps!

Related posts:

  1. SEO for SMF Forums, Some simple hacks
  2. Search Engine Friendly Wordpress
  3. Change your Wordpress title tags
  4. How to stop forum link spam on SMF
  5. Adsense Tips – Number of ads per page

One Response to “Friendly 404 page for SMF Forums”

  1. Smaxor says:

    That would crack me up if I found it. Awesome!@

Leave a Reply



About SEOidiot

Hi my name is Paul Madden and I am a UK SEO based in Lancashire, for years I have been cursed by the nickname SEOidiot which started life as a form of abuse from someone but you need to decide for yourself how accurate the term is.

Quotes about me

"I'm pretty glad this man calls himself SEOIdiot, as it's the only way the competition gets some work sometimes too. He's far from it of course, rather an SEO Genius, but please don't tell him that."
Joost De Valk
Wordpress Guru and SEO expert
kerboo






  • About SEOidiot
  • Follow Me
  • Recommended Reading
  • SEO services

  • Tags


    Big List - Search Marketing Blogs