Community Add-Ons
| Maintainers: | sylvioruiz |
Admin SSL .htaccess
for osCommerce Online Merchant v2.2
Hi People;
This is not a contribution, but to be useful for people using SSL, mainly they will be using .htaccess to protect the files (this is my case).
After to make the connection with protected directory via ssl, is necessary prompt with login and password. After login, when i click in some link at control panel, i need to retype my login and password, because the link is http different than address https and i lost my ssl conection.
The 'tep_href_link' function defined at '/admin/includes/functions/html_output.php' not work appropriately to protect links with ssl connection, because this function always return a link http, decurrent to exists variables not defined.
The variable 'ENABLE_SSL' and 'HTTPS_SERVER' not exists into your '/admin/includes/configure.php' and because this after use 'tep_href_link' always return a link http.
You need to define these variables into your '/admin/includes/configure.php' or change 'ENABLE_SSL' to 'ENABLE_SSL_CATALOG' and 'HTTP_SERVER' to 'HTTPS_CATALOG_SERVER', because these variables exists there.
Please comment about to this.
All I have done is join the two codes offered in the previous versions.
Change in..
Admin/configure.php and html_output.php. It works for me anyway.
It is just a small txt file inside zip.
Thanks to previous guys.
