How to redirect http to https for certain directories only with .htaccess

I do not want to automatically redirect http to https for the entire domain as that would slow down the entire website.

I just want to redirect http to https on certain dir eg. account dir

i.e. http://www.abc.com/account/foo.html to https://www.abc.com/account/foo.html

 

 

 

 

Top