<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for aeomer</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#usercomments-e6fc6ec5" type="application/json"/><link>http://disqus.com/people/aeomer/</link><description></description><language>en</language><lastBuildDate>Wed, 14 May 2008 09:07:11 -0000</lastBuildDate><item><title>Re: Please give me a 404 Page!</title><link>http://www.pathos-seo.com/joomlablog/please-give-me-a-404-page/#comment-461612</link><description>Easy to do! Create a 404 page for yourself using PHP - call it what you want depending its use e.g myerrordochandler.php. Change the System SEF to point to that file. Now the tricky bit. Explode the URL separating the url path and get_vars, check if this is something you want to handle or something you want a 404 page for.&lt;br&gt;&lt;br&gt;If you want to handle the page with actual content then ensure you put on the PHP statement  header("HTTP/1.1 200 OK"); BEFORE ANY OTHER OUTPUT TO THE BROWSER!!! If anything has gone to the browser already you will get a 'headers already sent' notice&lt;br&gt;&lt;br&gt;If you want to send a real '404 page' to stop missing pages being indexed then put a header("HTTP/1.0 404 Not Found"); statement in your PHP. Same rule applies - no output before the header statement.  You can ob_start() and ob_end_flush() to buffer your output until after the header is sent if you are so inclined.&lt;br&gt;&lt;br&gt;BTW if you have 404 redirection on a site  you coded yourself  (not Joomla etc) you can use .htaccess or httpd.conf settings to redirect to your ErrorDocument 404 handler (PHP or whatever your personal poison) and then use the header() function to tell the browser it is a real page not a 404 page! A very cool and completely standard way to create SEF - not like the Joomla junk way.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aeomer</dc:creator><pubDate>Wed, 14 May 2008 09:07:11 -0000</pubDate></item></channel></rss>