Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by sjorge:
http://wiki.apache.org/httpd/RedirectSSL

The comment on the change is:
Other rewrite stuff is converd in RewriteHTTPToHTTPS aswel... so removed

------------------------------------------------------------------------------
  
  ----
  
- === Alternative to above method (doesn't require mod_ssl!) ===
- {{{
-    RewriteCond %{HTTPS} !=on
-    RewriteRule .* - [F]
-    ErrorDocument 403 https://example.com
- }}}
- 
- 
- {{{
-    RewriteCond %{HTTPS} !=on
-    RewriteRule .*$ https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
- }}}
- '''NOTE''': The ''HTTPS'' variable is always present, even if `mod_ssl` 
isn’t loaded! This is useful if a non-SSL server is redirecting to a 
different SSL-enabled server.
- 
- 
- === Redirect everything served on port 80 to SSL ===
- {{{
-    RewriteCond %{SERVER_PORT} ^80$
-    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
- }}}
- 
- 
- === Redirecting to SSL or non-SSL using relative URIs ===
- {{{
-    RewriteRule ^/(.*):SSL$   https://%{SERVER_NAME}/$1 [QSA,R=302,L]
-    RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [QSA,R=302,L]
- }}}
- 

Reply via email to