Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Plugin Library / Other Modules / URL Redirection Manager

URL Redirection Manager

Other Modules

Plugin ID 2152
Download latest release

Overview

When a product, category or any other page is disabled in Zen Cart, the website will redirect users to a standard 404 (not foud) page. In the process, all "link juice", page rank, and backlink referrals from blogs or any other third-party websites would go to waste. This plugin allows website administrators to capture traffic and keep page rank after they disable a page, by redirecting users to a URL within the website. The plugin simplifies redirect management and enforce important redirect rules, such as not allowing entries where: - The origin URL already exists - Redirect chains are created - The origin and target URLs are the same PLUGIN OVERVIEW This plugin does not require any core file overwrite so it won't affect future Zen Cart upgrades. Easy to install and remove, this plugin was developed and tested on Zen Cart v.1.5.5e running on Apache/2.4.23 with PHP 5.6.24 and MySQL 5.5.5-10.1.16-MariaDB. INSTALLATION 1. Unzip the contents of this file in an empty folder 2. Rename the admin folder to match the name you use in your website 3. Login to the administrative area of your web store and go to: Tools > Install SQL Patches. Click the [Choose File] button, select the install.sql file provided, click [Open] and then [upload]. 4. Upload all contents of the ./url_redirection_manager folder into your web store. USING YOUR NEW PLUGIN 1. Go to Admin: Tools > URL Redirection Manager 2. Create a redirect by clickng the [Add URL Redirect] button 3. Test the newly added redirect by trying to open the original page and confirming it is redirecting. IMPORTANT: If the redirection is not working, your template is probably missing the following line of code: FILE NAME AND LOCATION ./includes/templates/YOUR_TEMPLATE/common/html_header.php ADD $zco_notifier->notify('NOTIFY_HTML_HEAD_START', $current_page_base, $template_dir); LOCATION At the top of the script (it should be the first line to execute). *** REMOVING (UNINSTALLING) THE PLUGIN *** If you are not happy with the plugin for any reason, you can uninstall it at any time as follows: 1. Remove the following files: ./includes/auto_loaders/config.redirection_manager.php ./includes/classes/observers/class.redirection_manager.php 2. Run the provided ininstall.sql file 3. Remove the five remaining files (optional): ./admin/addon_url_redirection_manager.php ./admin/includes/extra_datafiles/addon_url_redirection_manager.php ./admin/includes/languages/english/extra_definitions/addon_url_redirection_manager.php ./admin/includes/languages/english/addon_url_redirection_manager.php ./includes/extra_datafiles/addon_url_redirection_manager.php FINAL CONSIDERATIONS The plugin can redirect any disabled page in Zen Cart. However, it will not redirect images, pdf documents or any independent file or website that are not part of Zen Cart. You may want to have your .htaccess configured to take care of those situations as needed (if at all necessary).

Releases

  • 1.4 Not Encapsulated Release ID #6376
    14 Mar 2019 · Compatible with 1.5.6 Release by wvasconcelos · 243 downloads · 24.7 KB ZIP

    Including some bugs fixes from the previous version, this version makes the module compatible with PHP 7.3. Tested on Zen Cart v.1.5.6a, this version may work on Zen Cart 1.5.5 as well.

Author
Updated
14 Mar 2019
Releases
1
Plugin ID
2152