Title: Adding .htaccess files
Last modified: April 6, 2021

---

# Adding .htaccess files

 *  Resolved [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/)
 * Hi,
    After the last backup created, there was a new .htaccess file in all folders–
   which causes the site to not function. How can I make sure this does not happen,
   and delete all of them?

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

 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/#post-14282786)
 * The plugin creates .htaccess in wp-content/ai1wm-backups folder.
    It prevents
   other users from discovering your backups. If you find any other .htaccess files,
   they are not created by the plugin.
 *  Thread Starter [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/#post-14284569)
 * That is stange as it happened when I started the backup..
 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/#post-14284588)
 * What content do you see in the .htaccess files?
    Make sure it is not confidential
   information before sharing it.
 *  Thread Starter [Local](https://wordpress.org/support/users/fullctrl/)
 * (@fullctrl)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/#post-14286095)
 * <FilesMatch “.*\.(phtml|php)$”>
 * Order Allow,Deny
 * Deny from all
 * </FilesMatch>
 * But there seems to be something wrong with the index.php as well.
 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/#post-14287047)
 * No, this file is not created by this plugin.
    Something else created it. The 
   plugin creates .htaccess with the following contents:
 *     ```
       <IfModule mod_mime.c>
       AddType application/octet-stream .wpress
       </IfModule>
       <IfModule mod_dir.c>
       DirectoryIndex index.php
       </IfModule>
       <IfModule mod_autoindex.c>
       Options -Indexes
       </IfModule>
       ```
   
    -  This reply was modified 5 years, 2 months ago by [Yani](https://wordpress.org/support/users/yaniiliev/).
      Reason: formatting

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

The topic ‘Adding .htaccess files’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-migration/assets/icon-256x256.png?rev=2458334)
 * [All-in-One WP Migration and Backup](https://wordpress.org/plugins/all-in-one-wp-migration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-migration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-migration/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-migration/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Yani](https://wordpress.org/support/users/yaniiliev/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/adding-htaccess-files/#post-14287047)
 * Status: resolved