Title: Position of redirect code for https
Last modified: April 29, 2017

---

# Position of redirect code for https

 *  Resolved [ac1643](https://wordpress.org/support/users/ac1643/)
 * (@ac1643)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/position-of-redirect-code-for-https/)
 * Hi, I need to add some code into htaccess to redirect http to https. Should this
   be added above or below the NF code (currently at the top of the file), or doesn’t
   it matter?
 * Thanks

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

 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/position-of-redirect-code-for-https/#post-9081794)
 * I put mine right at the bottom, after the WordPress BEGIN >>> END rewrite rules.
    -  This reply was modified 9 years, 1 month ago by [barnez](https://wordpress.org/support/users/pidengmor/).
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/position-of-redirect-code-for-https/#post-9081844)
 * If you don’t want the .htaccess directives to be parsed, then put the redirection
   code at the top of the file, otherwise, below the directive(s) you want to be
   parsed.
 *  Thread Starter [ac1643](https://wordpress.org/support/users/ac1643/)
 * (@ac1643)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/position-of-redirect-code-for-https/#post-9088607)
 * ok thanks

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

The topic ‘Position of redirect code for https’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [ac1643](https://wordpress.org/support/users/ac1643/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/position-of-redirect-code-for-https/#post-9088607)
 * Status: resolved