Conversation
supportCurrently the requested url is matched against the entire permalink. I think it would be better instead to match it to the slug of the existing posts. function wbz404_rankPermalinks in functions.php could use the following code for a better match. $slug = explode('/',$urlParts['path']); $slug = array_pop($slug); $levscore = levenshtein($url, $slug,1,1,1); https://wordpress.org/plugins/404-redirected/
Aletrnatively in includes/functions.php, the following can be inserted after line 205: $urlParts['path'] = basename($urlParts['path']); $url = basename($url);
I took over the development of this plugin a few weeks ago, I’d love for you to create an issue here with matching pull request : https://github.com/defries/404-redirected/issues
Aletrnatively in includes/functions.php, the following can be inserted after line 205: $urlParts['path'] = basename($urlParts['path']); $url = basename($url);
I took over the development of this plugin a few weeks ago, I’d love for you to create an issue here with matching pull request : https://github.com/defries/404-redirected/issues