index2.php in root causing 404 error

Try to just use a index.html file and use <META HTTP-EQUIV=”Refresh” CONTENT=”5; URL=http://example.com/wp-content/themes/your_theme/index.php”> in your <head> section. Let’s see if the easy stuff works. edit: to be on the save side, always display a link to the index.php file with some descriptive text like “if your browser doesn’t redirect you automatically, please click here“

How can I send an email in my plugin?

Use wp_mail(), not just mail(). It is a wrapper for PHPMailer, a class that takes care for many problems the native mail() function often gets. See my plugin 404 Tools for how to use it in this case. To send an HTML email see Milo’s answer to a related question.

Getting 404s on New Pages

WordPress is not receiving requests, check if mod_rewrite is enabled and an .htaccess file is being generated by WordPress (assuming you are using Apache, not IIS). See using pretty permalinks and fixing permalink problems for more info.

Prevent WordPress from interpreting a subfolder?

To exclude a directory and all virtual requests to it, extend the regular rules: # WordPress # Images, Stylesheets etc. don’t need a HTML 404 RewriteCond %{REQUEST_URI} !.+\.\w{2,4}$ # Existing file RewriteCond %{REQUEST_FILENAME} !-f # Existing directory RewriteCond %{REQUEST_FILENAME} !-d # Symbolic link RewriteCond %{REQUEST_FILENAME} !-l # Do not touch the directory ‘clients’ RewriteCond %{REQUEST_URI} … Read more

How to find out which function is causing a 404

Go to http://[your-site].com/wp-admin and have a look in the Posts or Pages menu (or if it’s a custom post type, the edit screens for your post type). Also, if it’s indeed there, check your permalinks (Settings > Permalinks) and save them even if you don’t make any changes. This will flush the permalinks, which might … Read more

WordPress Post – On Post – 404 Page Not Found

SecFilterEngine Off SecFilterScanPOST Off This rules apply to Apache 1.x, but if your host uses Apache 2.x. then you don’t need it. Make sure you have permissions to upload your file to server. Also, make sure <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php … Read more