Kero_1116 Posted November 26, 2003 Posted November 26, 2003 after logging on (using the login.php) it goes to the ssl server's index.php n not the web server's index.php how do i fix that?
Kero_1116 Posted November 26, 2003 Author Posted November 26, 2003 after logging on, it goes back to https://sslcatacomb.com/~digitalplusdvd/catalog/index.php instead of http://www.digitalplusdvd.com/catalog/index.php how do i fix that?
Kero_1116 Posted November 27, 2003 Author Posted November 27, 2003 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 sitefunction 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(); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.