How can I redirct my website from http to https automatically?


I have one website and I purchased an SSL for it. But still, it redirects to HTTP. I want to forcefully redirect my website to HTTPS.
Please help.


Dreamhost has a help article on how to setup redirect rules:


Thanks, habilis and peter11.

I have followed this article steps and got a solution: Redirect HTTP to HTTPS

Thanks for the replay.