where fluff meets grit
osCommerce
Open source ecommerce application.
osCommerce redirect error when SSL enabled and shop directory is different to NONSSL directory
Dec 4th
I found the solution to this issue from a thread on the forums. It means making a correction to the tep_redirect function in functions/general.php.
You need to add the DIR_WS_HTTPS_CATALOG constant into the url transformation part…
Before:
// Redirect to another page or site function tep_redirect($url) { $url = str_replace(‘&’, ‘&’, $url); //Ampersand fix if ( (strstr($url, “\n”) != false) || (strstr($url, “\r”) != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, ”, ‘NONSSL’, false)); }
if ( (ENABLE_SSL == true) && (getenv(‘HTTPS’) == ‘on’) ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . More >
