Dang you see this title of when, you may will has two a questions: 1, and why to own defined a 404 page does, WordPress of template not since with 404.php to processing does not exists of page has did? I wanted to said of is, this 404 page does convenient, but Dang you of website do of time long has, is has may will appears large of 404 page, such as yiqian is do a information class of website, dang revision into WordPress blog zhihou, on will appears large of 404 page, and search engine is will continues to access these does not exists of page, such increased has server of burden, and using htaccess since defined a static of 404 page, is can solution this problem. 2, using htaccess custom WordPress 404 pages that are not simple, ErrorDocument 404/404.html in htaccess file to increase code directly, and then creates a new upload 404.html file to the root directory is OK. But this approach is not feasible, because the default override rule is all the request to index.php script, of course, also include pages that do not exist, if you add generic 404 page setup code directly, does not have any effect. Said so much, I believe you already know why you want to customize a 404 page for WordPress. Next, we'll describe how to customize your 404 page.
1, the first step of course is to create a 404.html file, and upload the site root htaccess rewrite rules for
2, delete the original file, add the following the following rules.
#BEGIN WordPress ErrorDocument 404/404.html RewriteEngine On RewriteBase/RewriteRule^archives/.*$/index.php[L]RewriteRule^feed.*$/index.php[L]RewriteRule^page/.*$/index.php[L]RewriteCond%{REQUEST_FILENAME}!-f RewriteCond%{REQUEST_FILENAME}!-d#END format WordPress
archives is the URL of the article Such as/archives/88, can be modified according to actual article URL. If your blog is installed in the WordPress directory, you must increase the RewriteRule^wordpress/.*$/index.php[L behind].
original article first: http://www.leicheng.NET/use-htaccess-customize-WordPress-404/

