Skip to content

Instantly share code, notes, and snippets.

@xeestudio
Last active July 18, 2023 19:03
Show Gist options
  • Save xeestudio/5a73d408068641b96ff887daed8814a5 to your computer and use it in GitHub Desktop.
Save xeestudio/5a73d408068641b96ff887daed8814a5 to your computer and use it in GitHub Desktop.
WordPress HTTPS Redirect .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
@DashingMZA
Copy link

Awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment