PDA

View Full Version : Independent SEO URL Validation(for ULTIMATE SEO URLs)



michael_s
03-31-2008, 12:02 AM
if a customer is logged on and the site is ssl secured a never ending redirect happens, when the customers wants to get to a category or product..

repalce the whole function "tep_validate_seo_urls" in catalog/includes/fuctions/general.php

with:

################################################
// fwrmedia.co.uk mod to check SEO link validity
function tep_validate_seo_urls() {
global $HTTP_GET_VARS;
$querystring = str_replace('?', '&', $_SERVER['REQUEST_URI']);
if (isset($HTTP_GET_VARS['products_id']))
$get_id_vars = str_replace(strstr($HTTP_GET_VARS['products_id'], '{'), '', $HTTP_GET_VARS['products_id']); // Remove attributes
$qs_parts = explode('&', $querystring); // explode the querystring into an array
$count = count($qs_parts);
$added_uri = array();
$remove_nasties = array('%3C', '%3E', '', ':/', 'http', 'HTTP', 'https', 'HTTPS'); // We do tep_sanitize_string() later anyway
for ( $i=0; $i