my .htaccess

RewriteEngine on
#ErrorDocument 404 /?page_id=126
ErrorDocument 404 /index.php?error=404
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php?error=404

“#ErrorDocument 404 /?page_id=126” – This is the page for my archive, and where I redirected error pages to before implementing and Customizing AskApache Google 404. The current error page goes to AskApache’s Google 404 page. The last three lines are necessary for 1and1 to redirect php files. Without these three lines, your 404 php pages go to 1and1’s 404 page (but only php pages.)