This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:hosting:redirect [2014/07/14 15:49] gcooper |
internet:hosting:redirect [2018/11/20 07:38] (current) gcooper |
||
---|---|---|---|
Line 10: | Line 10: | ||
vim .htaccess | vim .htaccess | ||
</ | </ | ||
+ | |||
+ | ===== Entire Site Somewhere Else ===== | ||
< | < | ||
Line 16: | Line 18: | ||
</ | </ | ||
+ | ===== Redirect HTTP to HTTPS ===== | ||
+ | |||
+ | < | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule (.*) https:// | ||
+ | </ | ||
+ | |||
+ | A permanent version: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | RewriteCond %{HTTPS} !on | ||
+ | RewriteRule ^(.*)$ https:// | ||
+ | </ | ||
+ | </ |