l0pht Posted April 13, 2007 Share Posted April 13, 2007 Does mod_rewrite work over a https connection? I have a site that I have configured to use http and then moved it over to https and the rewrites show up in the log file but don't show up on my webpage. I'm rewriting paths to some images and directories behind a reverse proxy. I'm assuming no but I can't find anything in the documentation that confirms this. Thanks! Quote Link to comment Share on other sites More sharing options...
shaymol Posted April 19, 2007 Share Posted April 19, 2007 Hi mates Ya , RewriteRule works in HTTPS . To work with RewriteRule in HTTPS you have to check the RewriteCond as HTTPS is on or off . lets see an example below : RewriteCond %{HTTPS} =on RewriteRule ^myURL$ https://mySite.com/index.php [QSA,L] The above code defines that if you are ih HTTPS and you are trying to get https://mySite.com/myURL then it redirects you https://mySite.com/index.php and still showing https://mySite.com/myURL in the address bar . Thanks ShaymoL Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.