Title: WordPress .htaccess
Last modified: August 22, 2016

---

# WordPress .htaccess

 *  [uepsilon](https://wordpress.org/support/users/uepsilon/)
 * (@uepsilon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/)
 * Hey guys, maybe someone can help me.
 * WordPress creates over night a .htaccess file that prevents showing all pictures.
   Only when I delete the file. All pictures are visible again.
 * Any Ideas?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602488)
 * > WordPress creates over night a .htaccess file
 * That sounds odd. Did you happen to save a copy of that you could post here?
 *  Thread Starter [uepsilon](https://wordpress.org/support/users/uepsilon/)
 * (@uepsilon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602675)
 * Order allow,deny
    deny from all
 * Thanks!
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602683)
 * WordPress is not the culprit there since it does not write security code. What
   you have there is being written by something else such as a plugin.
 *  Thread Starter [uepsilon](https://wordpress.org/support/users/uepsilon/)
 * (@uepsilon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602717)
 * Thank you. I have only a few plugins installed. How can I check which one is 
   the bad guy? Simply by deactivating one of them?
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602724)
 * Deactivating a plugin will not likely un-do something like that even if it is
   from a plugin. But what you could do is to remove the undesirable lines and then
   change your .htaccess permissions to 0404 so no plugin or even WordPress can 
   write to that file and then watch to see who or what might complain.
 *  Thread Starter [uepsilon](https://wordpress.org/support/users/uepsilon/)
 * (@uepsilon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602725)
 * Thanks leejosepho,
 * I know that deactivating will not undo it. I thought a workaround could be:
 * 1. deleting the created .htaccess file in uploads
    2. deactivate all plugins 
   3. activate the plugins one by one to see which one of them creates the .htaccess
   file
 * But anyways … the idea to set the permissions to 0404 is also a good idea. Will
   try it.
    Thanks in advance.
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602726)
 * Yes, deactivation is optional, and having tight permissions there is a good idea
   anyway.
 * If you wish, you also can set index.php, wp-blog-header.php and wp-config.php
   all the way down to 0400 (recommended by BulletProof Security) to protect them
   without affecting site function.
 *  Thread Starter [uepsilon](https://wordpress.org/support/users/uepsilon/)
 * (@uepsilon)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602727)
 * Oh thank you! Great idea.
    Will do this, when the site goes finally online. I
   will push an update, if your hints work …
 * Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘WordPress .htaccess’ is closed to new replies.

## Tags

 * [folder](https://wordpress.org/support/topic-tag/folder/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 2 participants
 * Last reply from: [uepsilon](https://wordpress.org/support/users/uepsilon/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/wordpress-htaccess-1/#post-5602727)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
