Un usuario preguntó 👇
Hola,
Si elimino una redirección o deshabilito una redirección incluso si deshabilito el plugin, ¡la redirección permanecerá activa!
Tengo mi propio servidor con Apache & cPanel / WHM, reinicio los servicios apache / php-fpm pero las redirecciones eliminadas o deshabilitadas continúan activas. Revisé el archivo .htaccess y no hay otras redirecciones activas.
¡Revisé esto en 3 de mis sitios web y en la misma situación!
¿Podrías investigar?
(@ johnny5)
Hace 2 años, 12 meses
Vea la primera entrada en las Preguntas frecuentes https://redirection.me/support/faq/
(@bittabola)
Hace 2 años, 7 meses
¡Hola John!
Está sucediendo algo extraño: una redirección funciona incluso después de que se borra la memoria caché y se cambia el navegador.
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/
Cuando habilito el plugin, veo que esta URL se redirige dos veces (una vez cuando el plugin está deshabilitado).
¿Qué podría ser la causa?
(@ johnny5)
Hace 2 años, 7 meses
Puedes hacer algo como https://redirect.li/http/ para comprobar la referencia. Su referencia anterior no se redirige con Redirect.
(@bittabola)
Hace 2 años, 7 meses
¡Gracias! ¿Cómo puede saber qué causó la remisión?
Esta respuesta fue modificada hace 2 años, 7 meses.
(@ johnny5)
Hace 2 años, 7 meses
El verificador de URL le dirá arriba si está siendo redirigido con Redirect.
(@bittabola)
Hace 2 años, 7 meses
¡Ok, lo tengo! Si no es una remisión, ¿cómo puede decir qué causó la remisión?
(@ johnny5)
Hace 2 años, 7 meses
Podría ser cualquier cosa en su servidor, tal vez el servidor en sí (tal vez un archivo .htaccess), WordPress tratando de mejorar las cosas, un plugin o un tema, deberá investigar y rastrear la redirección.
Si es WordPress, entonces ‘piratear’ es lo que puede hacer si se siente cómodo editando archivos wp-includes/pluggable.php
, consigue el wp_redirect
función y coloque esto en la parte superior de la función:
var_dump(debug_backtrace());
die();
Luego visite su URL y si WordPress está encendido, imprimirá un puñado de depuración que le dirá de dónde proviene la redirección en WordPress. Es posible que pueda encontrar la fuente con eso.
Recuerde eliminar la matriz tan pronto como haya terminado.
(@bittabola)
Hace 2 años, 7 meses
¡Muchas gracias, John! Tengo esto:
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" } }
Te dice algo esto? Lo siento, estoy un poco cansado de esto.
(@ johnny5)
Hace 2 años, 7 meses
Sin el formato, es solo una gran cantidad de cosas. Hago cosas como redirect_canonical
(Redireccionamiento de canon de WordPress), así como Pods_Templates_Auto_Template_Front_End
, FusionSC_Privacy
, y wpcf7_cleanup_captcha_files
. Deberá investigar más a fondo su WordPress y deshabilitar cosas
(@bittabola)
Hace 2 años, 7 meses
¡Bien gracias!
(@caspianexplorer)
Hace 2 años, 6 meses
Hola Bittabola, ¿cómo solucionaste el problema?
¿Solucionó tu problema??
0 / 0