You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Michael Smith <mj...@cursci.co.uk> on 1996/10/10 12:27:52 UTC
Problem with mod_rewrite and SSL
I have discovered that external redirections don't seem to work quite
right with SSL and mod_rewrite. For example, suppose I request
https://server/foo/bar
and in htaccess I have
RewriteRule bar bar.html [R]
Then the server redirects me to http://server:443/foo/bar.html
(on an ordinary server I get the correct redirection), instead of
https://server/foo/bar.html
At a guess it is assuming http and 80 as the defaults. I hope this
isn't too difficult to mend. I can't see how I can do it without
specifying the method and port explicitly in the htaccess file
(something I'd like to avoid)
Mike