Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htacces via ssl


derk.d

Recommended Posts

Posted

when I open the admin pagina (catalog/admin/) i get an inlogscreen (.htacces)

but when I fill in the login he goes to http://mydomain/shop/catalog/admin and it should be https://.... I have edited the configure.php

http_server

 

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

 

the other config file for the catalog is also edited and works great!

 define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://ssl.mydomain.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://ssl.mydomain.com');
 define('HTTP_COOKIE_PATH', 'http://mydomain.com');
 define('HTTPS_COOKIE_PATH', 'https://ssl.mydomain.com');
 define('DIR_WS_HTTP_CATALOG', '/shop/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/shop/catalog/');

 

how can I make the .htaccess more secure via SSL login??

Posted

this still should be this way

 

define('HTTP_CATALOG_SERVER', 'http://ssl.mydomain.com');

 

and not:

define('HTTP_CATALOG_SERVER', 'https://ssl.mydomain.com');

 

however the ssl should still work for going to your admin.

 

your

Archived

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

×
×
  • Create New...