Knowledgebase
Help! I disabled clean urls and when I update a product it wrecks my clean url so CDSEO no longer redirects properly!
Posted by - NA - on 04 May 2011 03:17 PM
When x-cart's clean urls are disabled, it automatically changes any clean url - regardless if it has been customized - and regenerates it from the product name. While X-Cart has claimed this to be an SEO feature, it is 100% an SEO disaster waiting to happen.

You can correct this as follows:

Open include/product_modify.php

FIND:
if ($config['SEO']['clean_urls_enabled'] == 'N') {
// Autogenerate clean URL.
$clean_url = func_clean_url_autogenerate('P', $productid, array('product' => $product, 'productcode' => $productcode));
$clean_url_save_in_history = false;
}

CHANGE TO:
/*
if ($config['SEO']['clean_urls_enabled'] == 'N') {
// Autogenerate clean URL.
$clean_url = func_clean_url_autogenerate('P', $productid, array('product' => $product, 'productcode' => $productcode));
$clean_url_save_in_history = false;
}
*/

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: