Title: SSL redirect codes
Last modified: November 10, 2021

---

# SSL redirect codes

 *  Resolved [AZAD](https://wordpress.org/support/users/theworkshop/)
 * (@theworkshop)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/)
 * Dear Support ,
 * I am using free version of Really Simple SSL plugin and SSL redirect codes in
   htaccess and Wp – Config in a same time below :
    Htaccess :
 *     ```
       <IfModule mod_rewrite.c>
       RewriteCond %{HTTPS} !=on
       RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
       </IfModule>
       ```
   
 * Wp – Config
 *     ```
       define(‘FORCE_SSL_LOGIN’, true);
       define(‘FORCE_SSL_ADMIN’, true);
       ```
   
 * Please let me know if there is any conflict between these codes and Really Simple
   SSL plugin .
 * Sincerely
    AZAD

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

 *  Plugin Author [Mark](https://wordpress.org/support/users/markwolters/)
 * (@markwolters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/#post-15057556)
 * Hi [@theworkshop](https://wordpress.org/support/users/theworkshop/),
 * the .htaccess redirect will also force /wp-admin/ over SSL, therefore the `define(‘
   FORCE_SSL_LOGIN’, true);
    define(‘FORCE_SSL_ADMIN’, true);`
 * can be safely removed.
 * Let me know if you have any other questions.
 *  Thread Starter [AZAD](https://wordpress.org/support/users/theworkshop/)
 * (@theworkshop)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/#post-15059013)
 * Dear Mark ( [@markwolters](https://wordpress.org/support/users/markwolters/) )
 * Thanks for your response .
 * According to your reply , I found that it is safe to using the .htaccess redirect
   code and Really Simple SSL plugin in a same time , is it ?
 * Best regards ,
    AZAD
 *  Plugin Author [Mark](https://wordpress.org/support/users/markwolters/)
 * (@markwolters)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/#post-15060903)
 * Hi [@theworkshop](https://wordpress.org/support/users/theworkshop/),
 * you can use the .htaccess redirect included in Really Simple SSL by enabling 
   the ‘.htaccess redirect’ option in the Settings->SSL menu. That will automatically
   apply the correct redirect for your site. The definitions or WP_HOME and WP_SITEURL
   can be removed from your wp-config.php file.
 *  Plugin Support [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/#post-15076099)
 * Hi [@theworkshop](https://wordpress.org/support/users/theworkshop/),
 * Can we provide any further assistance with this, or have your questions been 
   answered already?
 * Feel free to reach out if you have any further questions.
 * Kind regards,
    Jarno
 *  Thread Starter [AZAD](https://wordpress.org/support/users/theworkshop/)
 * (@theworkshop)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/#post-15358858)
 * Dear Support ,
 * Thanks for your response .
 * You may close this topic .
 * Best regards ,
    AZAD

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

The topic ‘SSL redirect codes’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [AZAD](https://wordpress.org/support/users/theworkshop/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/ssl-redirect-codes/#post-15358858)
 * Status: resolved