I am getting a SSL connection for my website, meaning I can access it with HTTPS. This is the first time I did such a thing and I’d like to know the basic stuff I need to do on my script to make it work as it should with the new connection.
My website uses cookies and sessions. I also need to know how I should force the user to use HTTPS instead of HTTP (ie: redirect to HTTPS if the user used HTTP).
Thank you.
If you need to force SSL for A particular URL’s then you can do something like this
Rewrite incoming URL’s on port 80 with a particular pattern;
You will also need to ensure that your apache server is listening for requests coming in on port 443. This can be done easily in your httpd.conf file;
You will also require a Virtual host on our Apache server;
This configuration will ensure that the transport between browser and your Apache server is all encrypted.