Dear Wiki user,

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

The "RewriteSSL" page has been changed by thumbs.
http://wiki.apache.org/httpd/RewriteSSL?action=diff&rev1=6&rev2=7

--------------------------------------------------

  
  == Recipe: ==
  
- To force the entire site into SSL:
+ To force the entire site into SSL (regardless of the context the rule is 
placed in):
  
  {{{
  RewriteEngine On
  RewriteCond %{HTTPS} !=on [NC]
- RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
- }}}
- 
- Or, in a .htaccess or <Directory> block, you'd need to remove that leading 
slash:
- 
- {{{
  RewriteRule ^ https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
  }}}
  

Reply via email to