Jump to content

Module: Page Path History Central Manager


Recommended Posts

Page Path History Central Manager

Manage all page paths history redirects in a single locations.

This module is user interface for the processwrie PagePathHistory module, that creates redirects automatically every time a page is moved/renamed. These redirects do not contain regex's and they will not redirect a user away from a published page making them safe for not technical editors to create. 

Features Include:

  • Ability to create new redirects
  • Ability to remove old redirects
  • View all the automatically created page path history redirects in your system, and delete any ones that no are no longer needed.

Git repo: https://github.com/hagcin/ProcessPathHistoryCentralManager

Viewing all existing redirects: Alt text

Adding New Redirect: Alt text

Tested on: Processwire 2.6, 3.0


  1. Install the module PagePathHistory from within the Processwire admin. PagePathHistory is included in core but not installed by default.
  2. Install the module ProcessPathHistoryCentralManager by cloning this repo into site/modules/ in your processwire install.
  3. Install the module in the admin interface.
  4. You can now manage redirects under setup > page path history central manager

Similar to and is compatible with PagePathHistoryManager which lets you manage page path history redirects on a specific page on the settings tab.

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

This sounds interesting but I'm not quite getting it. Could you give some examples of what kinds of scenarios this would be useful in?

I thought the PagePathHistory module took care of everything automatically so you never need to think about manually creating or editing redirects. Or does this module allow you to also create redirects when there never was a page at a particular URL? e.g. /some-path-where-there-never-was-a-page/ => /some-page-that-exists/

Link to comment
Share on other sites

This module both lets you create new redirects that never existed, and delete old redirects one would no longer like to have operational any more.  The user story for this project was: "As an SEO specialist I want to be able to manage redirects for news articles without developer involvement." Giving them a simple tool that did not require knowledge regex seemed like the safest way to not have future developer involvement. 

  • Like 1
Link to comment
Share on other sites

Updated the module to to fix the following issues:
- missing $sTable variable warning in debug mode.
- module now requires you to have PagePathHistory module installed
- I simplified SQL, hoping that got rid of the SQL errors, though I could not reproduce them.
- remove trailing slashes on "redirect from urls" since PagePathHistory requires them to be missing for redirects to work.

  • Like 1
Link to comment
Share on other sites

  • 9 months later...


I just installed the module and I get the following error:

2018-08-14 13:34:14     xxxx  http://xxxxxxx/admin/setup/path-history-central-manager/       Error:  Call to a member function fetch_assoc() on null (line 10 of /var/share/site/modules/ProcessPathHistoryCentralManager/templateTable.php)

Line 10 is "while ($row = $redirectsQueryResult->fetch_assoc()) {"

but should $redirectsQueryResult be replaced with $res

Is this correct?


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...