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/Recipes/RedirectSSL New page: = Redirect Request To SSL = Lets say you want http://www.domain.com/secure/ to always be sent over SSL (I presume here that both the normal and the ssl vhost have the same content). You could do this by linking to the correct page from within your HTML pages... but there will always be some user who will sneak by it this way. This is how to prevent it with mod_rewrite. {{{ <Location /secure> RewriteEngine On ReWriteCond %{HTTPS} !=on RewriteRule .* https://%{HTTP_HOST}:443%{REQUEST_URI} [QSA,R=permanent,L] </Location> }}} '''Note: It can also be use inside a directory or vhost container.''' Make sure you have loaded mod_rewrite and have it enabled. {{{ LoadModule rewrite_module modules/mod_rewrite.so RewriteEngine On }}}
