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 slive: http://wiki.apache.org/httpd/RedirectSSL The comment on the change is: Change silly example and improve grammar. ------------------------------------------------------------------------------ # etc... </VirtualHost> }}} - '''Note:''' redirect can also be used inside location, directory and .htaccess files + '''Note:''' redirect can also be used inside .htaccess files or to address particular URLs, as in: Example: {{{ - <Location /login> - Redirect permanent / https://mysite.example.com/login + Redirect permanent /login https://mysite.example.com/login - </Location> }}} + === Using mod_rewrite === - This isn't the recommended behavior but if you want to use mod_rewrite there is a separate page located here: ["RewriteHTTPToHTTPS"] + While the {{{<VirtualHost>}}} solution is recommended because it is simpler and safer, you can also use mod_rewrite to get the same effect as described here: ["RewriteHTTPToHTTPS"] - ----
