Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
apache:redirect-http-to-https [2011-05-13 16:57:47] – Approved garrett.plasky | apache:redirect-http-to-https [2014-08-05 18:11:26] – shaun.reitan | ||
---|---|---|---|
Line 3: | Line 3: | ||
The below code when added to an .htaccess file will automatically redirect any traffic destined for http:// to https:// | The below code when added to an .htaccess file will automatically redirect any traffic destined for http:// to https:// | ||
- | <sxh apache; auto-links: false> | + | <code> |
RewriteCond %{HTTPS} off | RewriteCond %{HTTPS} off | ||
- | RewriteRule (.*) https:// | + | RewriteRule (.*) https:// |
+ | </code> | ||
{{tag> | {{tag> |