Title: tandelk's Replies | WordPress.org

---

# tandelk

  [  ](https://wordpress.org/support/users/tandelk/)

 *   [Profile](https://wordpress.org/support/users/tandelk/)
 *   [Topics Started](https://wordpress.org/support/users/tandelk/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tandelk/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tandelk/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tandelk/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tandelk/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tandelk/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] .htaccess getting modified to default by itself](https://wordpress.org/support/topic/htaccess-getting-modified-to-default-by-itself/)
 *  Thread Starter [tandelk](https://wordpress.org/support/users/tandelk/)
 * (@tandelk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/htaccess-getting-modified-to-default-by-itself/#post-12007800)
 * So as per what you have told me about
 * > The custom code you’re adding needs to be in its own code block to avoid overwrites.
 *  I am currently making them changes outside default WordPress Section something
   like
 *     ```
       #BEGIN HTTPS Redirect
       <IfModule mod_rewrite.c>
       Options -Indexes
       RewriteEngine On
       RewriteCond %{HTTP_HOST} ^mywebsitehere\.com [NC]
       RewriteCond %{SERVER_PORT} 80
       RewriteRule ^(.*)$ https://www.mywebsitehere/$1 [R=301,L]
       </IfModule>
       # END HTTPS Redirect
       ```
   
 * Using above as a seperate section after #END WordPress area. If it is correct
   just let me know .
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] .htaccess getting modified to default by itself](https://wordpress.org/support/topic/htaccess-getting-modified-to-default-by-itself/)
 *  Thread Starter [tandelk](https://wordpress.org/support/users/tandelk/)
 * (@tandelk)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/htaccess-getting-modified-to-default-by-itself/#post-12007780)
 * Currently i did was i added the Retwrite Condition in default WordPress section
   
   [@wfgerald](https://wordpress.org/support/users/wfgerald/)
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       Options -Indexes
   
       RewriteCond %{HTTP_HOST} ^mywebsitehere\.com [NC]
       RewriteCond %{SERVER_PORT} 80
       RewriteRule ^(.*)$ https://www.mywebsitehere/$1 [R=301,L]
   
       </IfModule>
       # END WordPress
       ```
   
 *     ```
       # Block WordPress xmlrpc.php requests
       <Files xmlrpc.php>
       order deny,allow
       deny from all
       </Files>
       ```
   
    -  This reply was modified 6 years, 8 months ago by [tandelk](https://wordpress.org/support/users/tandelk/).

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