Title: Sync between plugin settings &amp; htaccess file?
Last modified: April 25, 2018

---

# Sync between plugin settings & htaccess file?

 *  Resolved [cdweeks](https://wordpress.org/support/users/cdweeks/)
 * (@cdweeks)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/sync-between-plugin-settings-htaccess-file/)
 * Hi, thanks for this plugin which I am relatively new to.
    So I tested some of
   the security settings on a staging site, and when everything worked as expected
   I imported the site onto my live site. At some point I realized that the htaccess
   file was either not imported or otherwise had been changed/written over. (Does
   resaving Permalinks do this?) Anyway, the plugin settings though still THOUGHT
   that all the old various security settings were enabled, even though they were
   not reflected in the current htaccess file. Is that normal? I had to upload the
   old htaccess file via ftp. Or is there another recommended way to restore the
   htaccess file via settings currently enabled in the plugin? Thanks.

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

 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/sync-between-plugin-settings-htaccess-file/#post-10219555)
 * Hi,
    Next time when importing to another site try deactivating and reactivating
   the plugin. That should trigger the writing of the .htaccess rules. I might also
   revisit the importing process to see if I can improve it slightly regarding writing
   to .htaccess after an import event.
 *  Thread Starter [cdweeks](https://wordpress.org/support/users/cdweeks/)
 * (@cdweeks)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/sync-between-plugin-settings-htaccess-file/#post-10220875)
 * Ok, thanks!
 * Come to think of it, when importing a site, it might be on a new server where
   some of the old htaccess rules do not apply (or could even break the site). So
   it is good that these are not blindly copied.
 * Maybe there could just be a button somewhere to regenerate the htaccess file 
   according to the current plugin settings.

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

The topic ‘Sync between plugin settings & htaccess file?’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cdweeks](https://wordpress.org/support/users/cdweeks/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/sync-between-plugin-settings-htaccess-file/#post-10220875)
 * Status: resolved