Ghost URL page + redirect present but not configured

#106060
  • Resolved Momento
    Rank Math free

    Hello,

    First of all, I would point out that before posting, I have been looking (in vain) for a solution for 2 days, but the various searches have led me to “nothing”.

    PROBLEM:
    the URL of an old page is still active (when the page no longer exists)
    and an automatic redirection is active
    => I have not configured any redirect for this old page to the new one
    => I want to delete this redirect so that I can declare my old page as obsolete at Google (I’m not able to do it if this redirection still present : Google check the page and mark it like still existing)

    EXAMPLE (because I have about twenty pages in this case):
    Old page URL that no longer exists:
    https://www.momento-resort.com/contact-et-infos/newsletter/
    URL to which it is referred:
    https://www.momento-resort.com/infos-services/newsletter/

    VERIFICATION
    I checked on RedirectCheck (http://redirectcheck.com)
    here is the result (with LsCache deactivated):
    ____________________________
    Results:

    https://www.momento-resort.com/contact-et-infos/newsletter/
    HTTP/2 301
    date: Thu, 19 Nov 2020 08:33:10 GMT
    content-type: text/html; charset=UTF-8
    content-length: 0
    location: https://www.momento-resort.com/infos-services/newsletter/
    x-powered-by: PHP/7.4.12
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    cache-control: no-cache, must-revalidate, max-age=0
    x-redirect-by: WordPress
    server: o2switch-PowerBoost-v3

    https://www.momento-resort.com/infos-services/newsletter/
    HTTP/2 200
    date: Thu, 19 Nov 2020 08:33:12 GMT
    content-type: text/html; charset=UTF-8
    vary: Accept-Encoding
    x-powered-by: PHP/7.4.12
    link: ; rel=”https://api.w.org/”, ; rel=”alternate”; type=”application/json”, ; rel=shortlink
    server: o2switch-PowerBoost-v3
    ____________________________

    SOLUTIONS SOUGHT
    1) see in .htaccess file
    no redirection present
    2) deactivation of the redirect plugin (RankMath)
    problem still present
    3) désactivante my cache plugin (LsCache)
    problem still present
    4) see in the database
    nothing found about the old URL

    and of course, I have emptied (several times) all the caches (locally or on the server)
    How do you remove this automatic redirect from this damn page that no longer exists?

    Thank you very much for those who can provide me with a solution

Viewing 6 replies - 1 through 6 (of 6 total)
  • Complementary information :
    of course, I also did an update of the permalinks.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    First of all, this redirection is not from Rank math. You can confirm the same if you check the x-redirect-by: WordPress value in your test results, you will see it is coming from WordPress. It still redirects even if you disabled all of Rank math on your site.

    If this is not on your htaccess settings, then it is likely a WordPress automatic redirect which is common when a page is redefined with an almost similar URL.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello and thanks for your answer.
    OK : I took note that the problem doesn’t come from your plugin.

    Would you be so kind as to tell me where I could correct this problem (knowing that the redirects are not registered in the .htaccess file)

    Whatever your answer, I won’t bore you again 🙂

    thank you so much
    Patrice

    Hello,

    Thank you for the follow up.

    WordPress uses a function called wp_old_slug_redirect() to find out if you’re looking for a post whose slug was recently changed and redirect you to its version.

    If you want to prevent this behaviour for this specific post, delete the _wp_old_slug post meta entry from the database for that post/page.

    If you want to prevent this behaviour for all posts, prevent the function from being used at all:

    
    remove_action( 'template_redirect', 'wp_old_slug_redirect' );
    

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks for your help and happy new year.

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Ghost URL page + redirect present but not configured’ is closed to new replies.