X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   CDSEO Pro / Clean URL Fix (https://forum.x-cart.com/showthread.php?t=70552)

notgrass 11-17-2014 11:36 AM

CDSEO Pro / Clean URL Fix
 
I searched the forums but did not see this addressed. It was not addressed on the Smack Digital site either.

When you use CDSEO Pro and disable Clean URLs in X-Cart, X-Cart does weird stuff to existing Clean URLs when you modify certain pages/products. This breaks the functionality of CDSEO Pro.

BCS Engineering has a fix for this regarding product pages:

https://support.bcsengineering.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticl eid=272&nav=0,1,17

But I was still having problems with Static Pages. In admin/pages.php, I made this modification that seems to have fixed the problem. Under // Insert/Update Clean URL, I commented out the code executed by the if statement:

if ($config['SEO']['clean_urls_enabled'] == 'N') {
/*
// Autogenerate clean URL.
$clean_url = func_clean_url_autogenerate('S', $clean_url_pageid, array('title' => $pagetitle));
$clean_url_save_in_history = false;
*/
}


All times are GMT -8. The time now is 03:44 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.