• Resolved Marius

    (@mariusfv)


    Hi,

    If I delete a redirection or disable an redirection even if I disable the plugin the redirection continue to be active!

    I have my own server with Apache & cPanel/WHM, I restart apache / php-fpm services but deleted or disabled redirects continue to be active.
    I’ve check .htaccess file and no other redirects are active.

    I check this on 3 of my websites and the same situation!

    Could you please investigate?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author John Godley

    (@johnny5)

    Please see the first entry in the FAQ https://redirection.me/support/faq/

    Hi, John!

    Weird thing is happening – redirect is working even after clearing the cache and changing the browser.

    https://www.tec-canada.com/en/blog/insights/leading-questions-interview-with-steve-kanellakos/https://tec-canada.com/insights/leading-questions-interview-with-steve-kanellakos/

    When I enable the plugin, I can see that this URL is redirected twice (only once when the plugin is disabled).

    What could be the reason?

    Plugin Author John Godley

    (@johnny5)

    You can use something like https://redirect.li/http/ to check the redirect. Your redirect above is not being redirected with Redirection.

    Thanks! How can you tell what caused the redirect?

    • This reply was modified 6 years, 8 months ago by Bittabola.
    Plugin Author John Godley

    (@johnny5)

    The above URL checker will say if it is being redirected with Redirection

    Ok, got it! If it is not Redirection, how can you tell what caused the redirect?

    Plugin Author John Godley

    (@johnny5)

    It could be anything on your server – maybe the server itself (.htaccess file maybe), WordPress trying to improve things, a plugin or a theme – you’ll need to investigate and track down the redirect.

    If it is WordPress then a ‘hack’ you can do if you’re comfortable editing files, is to edit wp-includes/pluggable.php, find the wp_redirect function and add this at the top of the function:

    var_dump(debug_backtrace());
    die();
    

    Then visit your URL and if WordPress is powering then it will print a bunch of debug that tells you where in WordPress the redirect came from. You may be able to locate the source with that.

    Remember to remove the edit as soon as you are done.

    Thanks a lot, John! I got this:

    array(7) { [0]=> array(4) { ["file"]=> string(61) "/var/www/vhosts/test.tec-canada.com/wp-includes/canonical.php" ["line"]=> int(533) ["function"]=> string(11) "wp_redirect" ["args"]=> array(2) { [0]=> string(82) "https://tec-canada.com/insights/leading-questions-interview-with-steve-kanellakos/" [1]=> int(301) } } [1]=> array(4) { ["file"]=> string(65) "/var/www/vhosts/test.tec-canada.com/wp-includes/class-wp-hook.php" ["line"]=> int(286) ["function"]=> string(18) "redirect_canonical" ["args"]=> array(1) { [0]=> string(94) "https://www.tec-canada.com/en/blog/insights/leading-questions-interview-with-steve-kanellakos/" } } [2]=> array(7) { ["file"]=> string(65) "/var/www/vhosts/test.tec-canada.com/wp-includes/class-wp-hook.php" ["line"]=> int(310) ["function"]=> string(13) "apply_filters" ["class"]=> string(7) "WP_Hook" ["object"]=> object(WP_Hook)#126 (5) { ["callbacks"]=> array(5) { [0]=> array(1) { ["_wp_admin_bar_init"]=> array(2) { ["function"]=> string(18) "_wp_admin_bar_init" ["accepted_args"]=> int(1) } } [10]=> array(4) { ["wp_old_slug_redirect"]=> array(2) { ["function"]=> string(20) "wp_old_slug_redirect" ["accepted_args"]=> int(1) } ["redirect_canonical"]=> array(2) { ["function"]=> string(18) "redirect_canonical" ["accepted_args"]=> int(1) } ["000000006afbaa2f000000004afdfe38save_consents"]=> array(2) { ["function"]=> array(2) { [0]=> object(FusionSC_Privacy)#5944 (2) { ["privacy_counter":"FusionSC_Privacy":private]=> int(0) ["data":"FusionSC_Privacy":private]=> bool(false) } [1]=> string(13) "save_consents" } ["accepted_args"]=> int(1) } ["000000006afb9c2d000000004afdfe38hook_content"]=> array(2) { ["function"]=> array(2) { [0]=> object(Pods_Templates_Auto_Template_Front_End)#8506 (0) { } [1]=> string(12) "hook_content" } ["accepted_args"]=> int(1) } } [11]=> array(2) { ["rest_output_link_header"]=> array(2) { ["function"]=> string(23) "rest_output_link_header" ["accepted_args"]=> int(0) } ["wp_shortlink_header"]=> array(2) { ["function"]=> string(19) "wp_shortlink_header" ["accepted_args"]=> int(0) } } [20]=> array(2) { ["wpcf7_cleanup_upload_files"]=> array(2) { ["function"]=> string(26) "wpcf7_cleanup_upload_files" ["accepted_args"]=> int(0) } ["wpcf7_cleanup_captcha_files"]=> array(2) { ["function"]=> string(27) "wpcf7_cleanup_captcha_files" ["accepted_args"]=> int(1) } } [1000]=> array(1) { ["wp_redirect_admin_locations"]=> array(2) { ["function"]=> string(27) "wp_redirect_admin_locations" ["accepted_args"]=> int(1) } } } ["iterations":"WP_Hook":private]=> array(1) { [0]=> array(5) { [0]=> int(0) [1]=> int(10) [2]=> int(11) [3]=> int(20) [4]=> int(1000) } } ["current_priority":"WP_Hook":private]=> array(1) { [0]=> int(10) } ["nesting_level":"WP_Hook":private]=> int(1) ["doing_action":"WP_Hook":private]=> bool(true) } ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> NULL [1]=> array(1) { [0]=> string(0) "" } } } [3]=> array(7) { ["file"]=> string(58) "/var/www/vhosts/test.tec-canada.com/wp-includes/plugin.php" ["line"]=> int(453) ["function"]=> string(9) "do_action" ["class"]=> string(7) "WP_Hook" ["object"]=> object(WP_Hook)#126 (5) { ["callbacks"]=> array(5) { [0]=> array(1) { ["_wp_admin_bar_init"]=> array(2) { ["function"]=> string(18) "_wp_admin_bar_init" ["accepted_args"]=> int(1) } } [10]=> array(4) { ["wp_old_slug_redirect"]=> array(2) { ["function"]=> string(20) "wp_old_slug_redirect" ["accepted_args"]=> int(1) } ["redirect_canonical"]=> array(2) { ["function"]=> string(18) "redirect_canonical" ["accepted_args"]=> int(1) } ["000000006afbaa2f000000004afdfe38save_consents"]=> array(2) { ["function"]=> array(2) { [0]=> object(FusionSC_Privacy)#5944 (2) { ["privacy_counter":"FusionSC_Privacy":private]=> int(0) ["data":"FusionSC_Privacy":private]=> bool(false) } [1]=> string(13) "save_consents" } ["accepted_args"]=> int(1) } ["000000006afb9c2d000000004afdfe38hook_content"]=> array(2) { ["function"]=> array(2) { [0]=> object(Pods_Templates_Auto_Template_Front_End)#8506 (0) { } [1]=> string(12) "hook_content" } ["accepted_args"]=> int(1) } } [11]=> array(2) { ["rest_output_link_header"]=> array(2) { ["function"]=> string(23) "rest_output_link_header" ["accepted_args"]=> int(0) } ["wp_shortlink_header"]=> array(2) { ["function"]=> string(19) "wp_shortlink_header" ["accepted_args"]=> int(0) } } [20]=> array(2) { ["wpcf7_cleanup_upload_files"]=> array(2) { ["function"]=> string(26) "wpcf7_cleanup_upload_files" ["accepted_args"]=> int(0) } ["wpcf7_cleanup_captcha_files"]=> array(2) { ["function"]=> string(27) "wpcf7_cleanup_captcha_files" ["accepted_args"]=> int(1) } } [1000]=> array(1) { ["wp_redirect_admin_locations"]=> array(2) { ["function"]=> string(27) "wp_redirect_admin_locations" ["accepted_args"]=> int(1) } } } ["iterations":"WP_Hook":private]=> array(1) { [0]=> array(5) { [0]=> int(0) [1]=> int(10) [2]=> int(11) [3]=> int(20) [4]=> int(1000) } } ["current_priority":"WP_Hook":private]=> array(1) { [0]=> int(10) } ["nesting_level":"WP_Hook":private]=> int(1) ["doing_action":"WP_Hook":private]=> bool(true) } ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(1) { [0]=> string(0) "" } } } [4]=> array(4) { ["file"]=> string(67) "/var/www/vhosts/test.tec-canada.com/wp-includes/template-loader.php" ["line"]=> int(12) ["function"]=> string(9) "do_action" ["args"]=> array(1) { [0]=> string(17) "template_redirect" } } [5]=> array(4) { ["file"]=> string(54) "/var/www/vhosts/test.tec-canada.com/wp-blog-header.php" ["line"]=> int(19) ["args"]=> array(1) { [0]=> string(67) "/var/www/vhosts/test.tec-canada.com/wp-includes/template-loader.php" } ["function"]=> string(12) "require_once" } [6]=> array(4) { ["file"]=> string(45) "/var/www/vhosts/test.tec-canada.com/index.php" ["line"]=> int(17) ["args"]=> array(1) { [0]=> string(54) "/var/www/vhosts/test.tec-canada.com/wp-blog-header.php" } ["function"]=> string(7) "require" } }

    Does this tell you anything? Sorry, I am bit of a noob in this.

    Plugin Author John Godley

    (@johnny5)

    Without the formatting it’s just a big blob of stuff. I can see things like redirect_canonical (WordPress canonical redirecting), as well as Pods_Templates_Auto_Template_Front_End, FusionSC_Privacy, and wpcf7_cleanup_captcha_files. You’ll need to investigate your WordPress further and try disabling things

    Ok, thanks a lot!

    Hola Bittabola, how did you fix the issue?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Delete or disable redirection continue to redirect’ is closed to new replies.