• Skip to primary navigation
  • Skip to main content

Genesis Community

Resources for Genesis WordPress Theme Users

  • Facebook
  • Twitter
  • Slack
  • Wiki
  • Login
You are here: Home / Wikis / WordPress / Redirect http traffic to https

Redirect http traffic to https

For servers using Apache:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

Goes above the WordPress block in .htaccess.

Source: https://yoast.com/moving-your-website-to-https-ssl-tips-tricks/

Posted by: Sridhar Katakam Category: WordPress Tags: https, SSL

« Add current-menu-item to CPT menu parent when on single entry
Custom Page Template »

Copyright © 2026 · Genesis Sample on Genesis Framework · WordPress · Log in