How to Completely Remove Ultimate SEO URLs from your Zen Cart

By Melanie Prough on Wednesday, May 30, 2012
Filed Under: Zen Cart Tutorials












As people begin to understand that rewrite modules such as Ultimate SEO URLs for Zen Cart decrease speed and cause a whole gambit of headaches for their stores, we find that USEO does not have a “uninstall” protocol. It’s actually not very difficult to remove this module, just use the instructions below.

How to Remove Ultimate SEO URLs for Zen Cart

1. BACKUP YOUR WEBSITE AND DATABASE
2. In your Zen Cart admin under configuration >> SEO URLs

  • Set Enable SEO URLs? to FALSE
  • Then set Reset SEO URLs Cache to RESET

3. Remove the following files:

  • admin\includes\extra_datafiles\seo.php
  • admin\includes\functions\extra_functions\seo.php
  • admin\includes\reset_seo_cache.php
  • includes\auto_loaders\config.ultimate_seo.php
  • includes\classes\seo.install.php
  • includes\classes\seo.url.php
  • includes\extra_datafiles\seo.php

4. Remove the following rules from your catalog directory’s .htaccess

Options +FollowSymLinks
RewriteEngine On
RewriteBase /shop/

# From Ultimate SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+).html$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]

# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]

# For dreamscape’s News & Articles Manager
RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]

# All other pages
# Don’t rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

5. Un-merge or replace with stock files for your version of Zen Cart the following core files which are changed by the module

  • admin\categories.php
  • admin\product.php
  • includes\functions\html_output.php

6. From your admin Tools >> Install SQL Patches run the following

For Zen Cart 1.3.X

DELETE FROM `configuration_group` WHERE `configuration_group_title` = SEO URLs;
DELETE FROM `configuration` WHERE `configuration_key` LIKE ‘%SEO%’;
DROP TABLE IF EXISTS seo_cache;

For Zen Cart 1.5.0

DELETE FROM `configuration_group` WHERE `configuration_group_title` = SEO URLs;
DELETE FROM `configuration` WHERE `configuration_key` LIKE ‘%SEO%’;
DROP TABLE IF EXISTS seo_cache;
DELETE FROM admin_pages WHERE page_key = ‘configUltimateSEO’ LIMIT 1;

That should do it for you. Remember rewrite modules for your Zen Cart create an inability to redirect pages as needed, if you change product or category names it changes your urls…. and you Zen Cart will enjoy a HUGE increase in load speed once removed!

Want to save the juice in these indexed pages?

Below is a redirect code which will send ALL page requests in your Zen Cart ending in .html to the domain root with a permanent 301 redirect. Add these rules to the .htaccess in your catalog folder.

RewriteRule \.(html|htm|)$ / [R=301,L]

 

Tags: , , ,

Comments are closed.

Template Original