Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

after logging on it goes to the ssl index.php


Kero_1116

Recommended Posts

Posted

actually

 

instead of https://sslcatacomb.com/~digitalplusdvd/catalog/index.php

 

i want to when i login it would redirect to:https://sslcatacomb.com/~digitalplusdvd/catalog/account.php

 

i no it has to do with tep_redirect in general.php

 

here's mine

 

// Redirect to another page or site

function tep_redirect($url) {

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

 

if (substr($url, 0, strlen(HTTP_SERVER) + strlen(DIR_WS_HTTP_CATALOG))== HTTP_SERVER . DIR_WS_HTTP_CATALOG){

$url = HTTP_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER)+ strlen(DIR_WS_HTTP_CATALOG)); // Change it to SSL with correct store

}elseif (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTP_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

}

 

header('Location: ' . $url);

 

tep_exit();

}

Archived

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

×
×
  • Create New...