Modify the .htaccess file

You could try changing the permissions on the .htaccess file itself. 755 7 – owner – read/write/execute 5 – group – read/execute 5 – everyone else – read/execute Neither WP or a plugin can edit/overwrite it; but then you would need to manually change it from there on out. Maybe that will help you narrow … Read more

htaccess has broken my site

Enable debugging in wp-config.php and check for errors. define( ‘WP_DEBUG’, true ); If you see blank white screen then it means.. Either you renamed your theme folder name. Some plugin is blocking access. Enable debigging and post errors here. EDIT You will have to try uploading files manually. Download no content WordPress from here. https://downloads.wordpress.org/release/wordpress-4.0-no-content.zip … Read more

.htaccess Security Header Rules

The RewriteEngine On line (as you have indicated) isn’t necessary, and pertains to a different module, mod_rewrite. You should remove it from the mod_headers block. It’s possible that you don’t have the Headers Apache module installed or activated on your host. If it is possible to run the test with some breakage, you could try … Read more

Override 404 page with htaccess

As far as I can see, it is not possible to use a custom 404 ErrorDocument directive in your htaccess file because WordPress’ index.php will always be found when processing the htaccess content. (unless ofcourse index.php got deleted for some reason) Because index.php is found, it will not trigger the ‘404 not found’ ErrorDocument directive. … Read more

How to hide login form if basic authentication fails?

Managed to figure it out and want to share it with others in case they’re having the same issue. When protecting wp-admin, protect it using wp-admin/.htaccess file, but that only works for the wp-admin directory, and won’t affect the wp-login.php file which is outside that directory. Add protection to the wp-login.php file using the <files></files> … Read more