2017-11-23, 12:07:13
To get this plugin to work, you need to extract url_corrector.php to the plugins folder. i.e. Move it from plugins\url-corrector-1.2\ up to \plugins.
I also found that menus at the parent level would only show a blank page...
home|about us|contact|documentation menu header|
.. so the id about-us and contact would show a blank page, but any links below the documentation menu header worked fine.
I modified the code by commenting the code to handle urls without a parent, as follows, and it seems to be working on xampp local installation php 7.1. (extract from url_corrector_init())...
Getsimple 3.3.13
php 7.1
Other plugins:
GST AdminLock
GS Shortcodes
kt block login
Simple Backups
I'll report back if there are problems taking this live.
I also found that menus at the parent level would only show a blank page...
home|about us|contact|documentation menu header|
.. so the id about-us and contact would show a blank page, but any links below the documentation menu header worked fine.
I modified the code by commenting the code to handle urls without a parent, as follows, and it seems to be working on xampp local installation php 7.1. (extract from url_corrector_init())...
Code:
if ($id == "" or $id == "index") {
url_corrector_redirect(preg_replace("/\/$/","",$url.$query));
return true;
// } else if ($parent=="") {
// url_corrector_redirect(find_url($id).$query);
// return true;
} else {
// $urn = str_replace(array("%slug%","%parent%"), array($id,$parent), $urn_mask);
url_corrector_redirect(find_url($id,$parent).$query);
return true;
}
}
Getsimple 3.3.13
php 7.1
Other plugins:
GST AdminLock
GS Shortcodes
kt block login
Simple Backups
I'll report back if there are problems taking this live.