I'm trying to force a specific URL to use HTTPS, but the problem is that all the links in that page would point to HTTPS of other pages as well.
So, I was thinking about updating my virual host file like this.
<VirtualHost *:80> #Rewrite urls under /foo/bar/* to use HTTPS://domain/foo/bar/* RewriteEngine on RewriteRule ^/foo/bar/(.*) https://domain/foo/bar/$1 </VirtualHost> <VirtualHost *:443> #Rewrite all urls except /foo/bar/* to use HTTP://domain/* </VirtualHost>
Any suggestions on how I can implement this?