I have a web application developed by php. I can access the application by making use of the url like http://www.example.com . Now I need whenever, user types example.com in the url it will show https://www.example.com instead of http://www.example.com .
Is it possible or I have to take care about https from beginning itself during code development?
Please help me how to do this.
Thanks in advance.
try it in htaccess
for web server with domain
for local server