WPIntell

Source evidence

Code for better match

Redirectioner · support · 2015-11-23T07:29:00+00:00

complaintsentiment
mediumseverity
0.8relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 28 rows with source links

10.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Shivanand Sharma unresolved
Currently 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

Comments

2 shown
Shivanand Sharma 2016-04-08T15:26:00+00:00

Aletrnatively in includes/functions.php, the following can be inserted after line 205: $urlParts['path'] = basename($urlParts['path']); $url = basename($url);

Remkus de Vries 2016-06-11T09:21:00+00:00

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