Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to have your site display in HTTPS


shsram

Recommended Posts

Hi,

can someone guide me on how to have your site display in HTTPS (what files need to be changed) for example if you're directed to the shopping cart. I've purchased the SSL certificate from GOdaddy. It was installed however, they indicated that I need to do this "For example, if your shopping cart file is named is cart.html, you will need to script the links to that page to look for https://yourdomain.com/cart.html. "

 

thanks

Link to comment
Share on other sites

In your configure.php files (catalog/includes and catalog/admin/includes) change the following:

 

(admin)

 define('HTTP_SERVER', 'http://my_store.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://my_store.com');
 define('HTTPS_CATALOG_SERVER', 'http://my_store.com');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

(catalog)

 define('HTTP_SERVER', 'http://my_store.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://my_store.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?

 

to

 

(admin)

 define('HTTP_SERVER', 'http://my_store.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://my_store.com');
 define('HTTPS_CATALOG_SERVER', 'https://my_store.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

(catalog)

 define('HTTP_SERVER', 'http://my_store.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://my_store.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

osC will choose the pages to display as SSL automatically

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Link to comment
Share on other sites

If you want the admin to be HTTPS all the time use this:

 

(admin)

 define('HTTP_SERVER', 'https://my_store.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

If you want the admin to be HTTPS all the time use this:

 

(admin)

 define('HTTP_SERVER', 'https://my_store.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 

 

Thanks a lot guys.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...