This is a draft. I'm new here, feel free to set me straight on procedures. This is nearly finished except for links and the section on writing friendly messages.
Thanks for your contribution. Did you read through the Codex Guidelines and tips on helping? There is a lot of good info there, so make sure you take time to go through it. It's a general guideline to create these articles within your user page first before putting them in the general pages so they can get edited and cleaned up before going "public". The other is that all discussions about the article are done on the discussion page, like what you are reading. We also like it when you let us know what you are going to do on the wp-docs mailing list so there isn't any duplication of effort. And lastly, if you would sign your discussion posts with four tidles (~) which creates a "signature" and time stamp and helps us keep track of who you are and when you posted your comments. Little things.
My name is Lorelle and I'm the kinda assistant editor behind the Lessons Pages so I'll be going through this and cleaning it up. Please remember that the bottom line in the edit screen says don't put anything here you don't want edited without mercy, so please know that all of the work here is done without blame and ego, only to inform and educate you, as a contributor, and everyone else who reads this work.
I will probably have a few questions for you, so I hope you will create a user page so I can leave a message for you (sign something and then click on your name and type in a little about yourself and a link to your web page so we can contact you) and check here to see if I've posted any questions for you.
Thanks again and I look forward to seeing your great contribution! Lorelle 19:46, 23 Apr 2005 (UTC)
WordPress will not automatically use that 404.php page if a Page Not Found error occurs.
Default wordpress set up without htaccess using default theme (which has 404.php) it will not use the 404.
http://www.stdp.org/list/news/brokenlink.php
Even if you create a post that has a broken link, the 404.php will not be used without installing the htaccess file:
http://www.stdp.org/list/news/?p=2
But once we set up the htaccess, all is peachy. I don't have a 404.php for the Landzilla theme so it goes back to index.php by default. That's because the htaccess tells it to go to 404.php, but handles it nicely if it's not there. Because WordPress is very polite.
Here is a link that (if you use the cub reporter or WordPress Default theme) will find it's 404.php.
http://www.reportica.net/news/brokenlink.php
You need that htaccess, unless i am wrong. then you don't...
Sheryl
Here is an example of a recently installed (1.5) WordPress where a call to a non-existent file does not call 404.php (if the htaccess was set up, yes, it would then revert to index.php if this theme did not have a 404.php.)
http://www.stdp.org/news/brokenlink.php
I never had any file called brokenlink.php, I use that url to produce a 'file not found' error.
You can also see that a WordPress page that calls that nonexistent file produces the same error. This one has the default theme. It does not call 404.php even though the file exists.
http://www.stdp.org/list/news/brokenlink.php
Another one of my sites, not calling 404.php by default, even though it is a new standard installation using the default theme:
http://www.hearthandhome.net/news/nonexistent-file.php
I believe this is because the htaccess is not set up, as it is at reportica.net:
http://www.reportica.net/news/brokenlink.php
Unless I am doing something non-standard, htacess is required for 404.php to be called by 1.5.
Sheryl
This is the page I'm working on http://sculptmydog.com/ and if I click on the links About, Archives and Contact it sends me to the 404 page, but I don't want to see the 404 page I want to see and actually page. Like this http://sculptmydog.com/?page_id=2. And I found this in the header page
Is this where I would direct it to the link and if so how?
Unless I'm mistaken I believe the section on "Help Your Server Find the 404 Page" is misleading. I think once the user has Pretty Permalinks enabled then the suggestion of adding:
ErrorDocument 404 /index.php?error=404
to your .htaccess file is incorrect and this will actually result in the server directing the user to the website's home page. I believe with Pretty Permalinks on the .htaccess file should point to:
ErrorDocument 404 /404/
Unless it's a question of where in the .htaccess file this rule is placed - either way this section needs some clarification.
I thought I'd look for discussion before going ahead an editing. --Alex 02:06, 26 January 2009 (UTC)