Title: Always redirect to https
Last modified: September 1, 2016

---

# Always redirect to https

 *  Resolved [worldbus](https://wordpress.org/support/users/worldbus/)
 * (@worldbus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/always-redirect-to-https/)
 * How can always redirect non http:// request to httpS://
 * For example, i want if someone requested [http://mysite.com/test.html](http://mysite.com/test.html),
   then automatically [https://mysite.com/test.html](https://mysite.com/test.html)
   will be serve.

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

 *  [cedcommerce](https://wordpress.org/support/users/cedcommerce/)
 * (@cedcommerce)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/always-redirect-to-https/#post-7588095)
 * Hello, you can use the “Easy HTTPS Redirection” for redirecting from http to 
   https, you can find the plugin from [HERE](https://wordpress.org/plugins/https-redirection/),
   if you don’t want to use the plugin you can achieve this via updating your .htaccess
   file, place this code to your .htaccess file and this will redirect every http
   request to https.
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
   
       RewriteCond %{HTTPS} !=on
       RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
   
       # BEGIN WordPress
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       ```
   
 * Hope this will help you.
    Thanks.
 *  Thread Starter [worldbus](https://wordpress.org/support/users/worldbus/)
 * (@worldbus)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/always-redirect-to-https/#post-7588112)
 * Thank you, its working fine now.
    For test: [http://www.persianwhois.com/services/virtual-server/](http://www.persianwhois.com/services/virtual-server/)
   Then it will redirect to: [https://www.persianwhois.com/services/virtual-server/](https://www.persianwhois.com/services/virtual-server/)

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

The topic ‘Always redirect to https’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [worldbus](https://wordpress.org/support/users/worldbus/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/always-redirect-to-https/#post-7588112)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
