Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
apache:redirect-http-to-https [2011-04-25 15:56:46] shaun.reitan Approved |
apache:redirect-http-to-https [2011-05-13 23:55:34] garrett.plasky Approved |
||
---|---|---|---|
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:// | ||
- | <code console> | + | <sxh apache> |
RewriteEngine On | RewriteEngine On | ||
RewriteCond %{HTTPS} off | RewriteCond %{HTTPS} off | ||
- | RewriteRule (.*) https:// | + | RewriteRule (.*) https:// |
- | </code> | + | |
{{tag> | {{tag> |