Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Implementing HTTPS 301 redirect to new secure a domain in htaccess for optimal SEO
RewriteEngine On
RewriteCond %(HTTPS) on
RewriteRule (.*$)$ [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment