Installation of Custom Dynamic Search Engine Optimization (CDSEO) Pro for X-Cart is done via a web-based installation. Instructions are posted here for reference only.
STEP 3 - Create rewrite code
Follow the instructions for the server type on which you are installing:
Default / Apache
The following code must now be copied and pasted into an .htaccess file located in your root store
directory (i.e. the same directory as home.php and cart.php).
Be sure to replace your current DirectoryIndex if applicable. If your file contains the default directory index
it will appear as: DirectoryIndex index.html index.php
For X-Cart 3.5.x only: Change #RewriteBase /xcart/ to #RewriteBase /xcart/customer/ (where x-cart is the directory in which you've installed x-cart).
Windows using Isapi Rewrite 3+
Step 3a : The following code must now be copied and pasted into an .htaccess file located in your root store
directory (i.e. the same directory as home.php and cart.php).
For X-Cart 3.5.x only: Change #RewriteBase /xcart/ to #RewriteBase /xcart/customer/ (where x-cart is the directory in which you've installed x-cart).
Step 3b : In your server control panel you will have the ability to set a Directory Index. Add a primary index of home.php.
If you are unable to do this then edit your CDSEO settings once installation is complete and disable "Rewrite and redirect index page of home.php to /:"
Zeus with rewrite enabled
Step 3a : The following code must now be copied and pasted into the "Rewrite Script" section of your Zeus control panel:
For X-Cart 3.5.x only: Change if not exists then set URL = /cdseopro.php to if not exists then set URL = /customer/cdseopro.php
Step 3b : If your server supports .htaccess files, copy and paste the following into an .htaccess file located in your root store
directory (i.e. the same directory as home.php and cart.php).
Be sure to replace your current DirectoryIndex if applicable. If your file contains the default directory index it will appear as: DirectoryIndex index.html index.php. If .htaccess is unsupported then edit your CDSEO settings once installation is complete and disable "Rewrite and redirect index page of home.php to /:"
STEP 4 - Modify system files
It's recommended that you back-up each file you edit so you can easily revert your changes if necessary.
Step 4a
OPEN home.php
Find:
require "./auth.php";
REPLACE with:
// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links
Step 4b
OPEN product.php
Find:
require "./auth.php";
REPLACE with:
// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links
Step 4c
For X-Cart 3.5.x only: Skip this edit as manufacturers.php will not be present.
OPEN manufacturers.php
Find:
require "./auth.php";
REPLACE with:
// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links
Step 4d
OPEN pages.php
Find:
require "./auth.php";
REPLACE with:
// WCM - CDSEO Pro Links
#require "./auth.php";
require_once "./auth.php";
include $xcart_dir."/modules/cdseolinks/cdseo_redirects.php";
// / WCM - CDSEO Pro Links
Step 4e
OPEN auth.php
Find:
?>
BEFORE add:
// WCM - CDSEO Pro Links
include_once $xcart_dir."/modules/cdseolinks/cdseo_config.php";
// / WCM - CDSEO Pro Links
Step 4f
For X-Cart 3.5.x only: Skip this edit as Froogle module will not be present.
OPEN modules/Froogle/froogle.php
Find:
set_time_limit(0);
AFTER add:
// WCM - CDSEO Pro Links
include_once $xcart_dir."/modules/cdseolinks/cdseo_convert_urls.php";
// / WCM - CDSEO Pro Links
If running x-cart 4.2.x FIND:
$product_url."\t".
Else FIND:
$froogle_location.constant("DIR_CUSTOMER")." /product.php?productid=".$product['productid']."\t".
REPLACE with:
// WCM - CDSEO Pro Links
#$froogle_location.constant("DIR_CUSTOMER")." /product.php?productid=".$product['productid']."\t".
$froogle_location.constant("DIR_CUSTOMER"). "/" . wcmcdseoGetUrl($product[productid], 'product') . "\t" .
// / WCM - CDSEO Pro Links