Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Is the problem still there? Because the link is working perfectly here. You must understand WP 404 Auto Redirect to Similar Post only take action when a 404 page is about to be displayed.

    It’s technically impossible that the plugin take over an “existing” URL, because the very first rule I check is the function is_404() (https://codex.wordpress.org/Function_Reference/is_404). If is_404() is false, then everything else from the plugin is literally canceled.

    My guess is that the URL was actually mispelled, or maybe an another plugin took non-desirated action.

    Have you tried to activate Debug Mode and then visit the URL while being logged as admin? If the Debug Console is displayed, can you please paste it here?

    Thanks πŸ™‚

    Thread Starter vijayp4you

    (@vijayp4you)

    I deactivated the plug-in. So it working fine.
    If u want I will active for u to test for some time

    Thread Starter vijayp4you

    (@vijayp4you)

    I will send debug code

    Thread Starter vijayp4you

    (@vijayp4you)

    Requested URL: http://www.checktop10.in/go/592-in-B00LLYZ7G6

    Automatic Redirection: http://www.checktop10.in/best-godrej-washing-machine/ (301 Headers)

    Details: Similar post of post_type post was found.
    Array
    (
    [request] => Array
    (
    [full] => /go/592-in-B00LLYZ7G6
    [dirname] => go
    [filename] => 592-in-b00llyz7g6
    [extension] =>
    )

    [process] => Array
    (
    [request] => /go/592-in-B00LLYZ7G6
    [keywords] => Array
    (
    [sanitized] => go-592-in-b00llyz7g6
    [explode] => Array
    (
    [0] => 592-in-B00LLYZ7G6
    [1] => go
    )

    )

    )

    [score] => 2
    [id] => 592
    [url] => http://www.checktop10.in/best-godrej-washing-machine/
    [why] => Similar post of post_type post was found.
    )

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thank you for the report!

    May I ask how do you manage those /go/xxxxxx redirections? Do you use a specific plugin? If so, may I ask which one? It looks like /go/ is not even a post_type.

    Thread Starter vijayp4you

    (@vijayp4you)

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thank you! I’ll see their code to understand where the problem come from. In the meantime, can you try to edit the WP 404 Auto Redirect to Similar Post plugin?

    Edit: /plugins/wp-404-auto-redirect-to-similar-post/wp-404-auto-redirect-similar-post.php Line: 227

    Find: add_action('template_redirect', 'wp404arsp_init');
    Replace To: add_action('template_redirect', 'wp404arsp_init', 999);

    Re-activate the plugin, and try again to reach your URL http://www.checktop10.in/go/592-in-B00LLYZ7G6 please.

    Thread Starter vijayp4you

    (@vijayp4you)

    I have done changes to what u said.
    Now it is working fine.
    Thank you.
    Will you change it in next update or every time I need to do edit the code after the update?

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Okay that’s exactly what I was thinking about πŸ™‚

    I was already thinking about adding this change, now I’ll surely do it!
    Just to let you know, the extra 999 at the end of the action add_action('template_redirect') tells the plugin to execute very late, after all other plugins.

    I’ll add it by default in the next patch!

    Thank you.

    Regards.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘External link redirecting to internal posts’ is closed to new replies.