I have received SSL certification for my oscommerce website. I need to enable https:// for some particular pages.
can someone help?
I have received SSL certification for my oscommerce website. I need to enable https:// for some particular pages.
can someone help?
2
Answers
Open
includes/configure.php
and setENABLE_SSL
toTRUE
.As a more generic solution if you’re using Apache…
To access a certain page, you only need to call it with the HTTPS protocol, e.g.
https://www.example.com
. That was the easy part :-).One problem you will encounter is, that every secure page has to ensure itself, that it is called exclusively with this protocol. In my opinion this is done best in a generic way in the .htaccess file, so you don’t have to think about implementing it in every page. An example:
http://www.martinstoeckli.ch/php/php.html#ssl_switching
This leads to another problem with the session cookie. For unsecure HTTP pages the cookie will be sent unencrypted and an attacker can hijack the cookie. Switching between secure and unsecure pages will make your session vulnerable. To prevent this you have two possibilities:
Hope this gives you some ideas.