Title: HTTP to HTTPS
Last modified: December 12, 2018

---

# HTTP to HTTPS

 *  Resolved [mikelip](https://wordpress.org/support/users/mikelip/)
 * (@mikelip)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http-to-https-28/)
 * Hi All
 * Hi I use swift performance on my site [http://www.medequipusa.com](http://www.medequipusa.com).
   I am currently redirecting the http to https. when i try and edit my .HTAccess
   file and add the following:
    <IfModule mod_rewrite.c> RewriteEngine On RewriteCond%{
   HTTPS} off RewriteRule ^(.*)$ [https://%](https://%){HTTP_HOST}%{REQUEST_URI}[
   L,R=301] </IfModule>
 * i am getting an error and the site goes down. Does this have to do with Swift
   performance and where i put the statement in the HTAccess file?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttp-to-https-28%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Fred](https://wordpress.org/support/users/fredawd/)
 * (@fredawd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http-to-https-28/#post-10984310)
 * I noticed you already solved the problem 🙂
 * In general [this article](https://swiftperformance.io/kb/strange-redirects/) 
   may helpful.
 *  Thread Starter [mikelip](https://wordpress.org/support/users/mikelip/)
 * (@mikelip)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http-to-https-28/#post-10984640)
 * I haven’t solved anything yet.
 *  Plugin Contributor [Fred](https://wordpress.org/support/users/fredawd/)
 * (@fredawd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http-to-https-28/#post-10986693)
 * Did you read the article?
 * Remove rules in .htaccess and add this in Swift
    ##——Force HTTPS——## RewriteCond%{
   HTTPS} off RewriteRule .* [https://%](https://%){HTTP_HOST}%{REQUEST_URI} [L,
   R=301] Header set Strict-Transport-Security “max-age=31536000” env=HTTPS

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

The topic ‘HTTP to HTTPS’ is closed to new replies.

 * ![](https://ps.w.org/swift-performance-lite/assets/icon-256x256.jpg?rev=2388229)
 * [Swift Performance Lite](https://wordpress.org/plugins/swift-performance-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/swift-performance-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/swift-performance-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/swift-performance-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/swift-performance-lite/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 3 replies
 * 2 participants
 * Last reply from: [Fred](https://wordpress.org/support/users/fredawd/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/http-to-https-28/#post-10986693)
 * Status: resolved