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=7&rev2=8

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

  RewriteRule ^ https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
  }}}
  
- Or, if you wanted to have a particular subdirectory forced into https:
+ Or, if you wanted to have a particular subdirectory forced into https (again, 
safe to use in a per-directory context):
  
  {{{
  RewriteEngine On
  RewriteCond %{HTTPS} !=on [NC]
+ RewriteCond %{REQUEST_URI} ^/secure(/.*)?
- RewriteRule ^/secure(.*) https://%{SERVER_NAME}/secure$1 [R,L]
+ RewriteRule ^ https://%{SERVER_NAME}/secure%1 [R,L]
  }}}
+ 
+ Please note that (/.*)? will make the presence of a / followed by any 
characters conditional. The value is appended to the target URL.
  
  == Discussion: ==
  

Reply via email to