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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)