Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "RedirectSSL" page has been changed by thumbs: https://wiki.apache.org/httpd/RedirectSSL?action=diff&rev1=30&rev2=31 Comment: Remove permanent redirects from the recipe, and offer it as a final solution once it is tested. Convert the .htaccess code into a section. <VirtualHost *:80> ServerName mysite.example.com DocumentRoot /usr/local/apache2/htdocs - Redirect permanent /secure https://mysite.example.com/secure + Redirect /secure https://mysite.example.com/secure </VirtualHost> <VirtualHost _default_:443> @@ -34, +34 @@ NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example.com - Redirect permanent / https://secure.example.com/ + Redirect / https://secure.example.com/ </VirtualHost> <VirtualHost _default_:443> @@ -45, +45 @@ </VirtualHost> }}} + '''Note:''' Once the configuration is working as intended, a permanent redirection can be considered. This avoids caching issues by most browsers while testing. The directive would then become: + {{{ + Redirect permanent / https://secure.example.com/ + }}} + + == Using .htaccess files and redirect == - '''Note:''' redirect can also be used inside .htaccess files or to address particular URLs, as in: + Redirect can also be used inside .htaccess files or to address particular URLs, as in: + Example: {{{ - Redirect permanent /login https://mysite.example.com/login + Redirect /login https://mysite.example.com/login }}} --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org