why is this page redirecting to homepage?

#270455
  • Resolved DII
    Rank Math free

    Hello, I was trying to set up 301 redirections to one of my posts, rank-math redirection is not working for this. It’s being redirected to the homepage automatically.

    Please suggest.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    I checked the URL and it indeed redirects to the homepage. Please enable the Debug Redirections option from your WordPress admin area > Rank Math > General Settings > Redirections.
    Debug Redirections option enabled

    When the Debug Redirections option is enabled, an interstitial window is displayed before the redirection actually happens and inside that window, you will be able to find which rule is causing the Redirection.

    After enabling the above option, please visit the URL again to see the interstitial window.

    For more details, please refer to this tutorial guide:
    https://rankmath.com/kb/solving-redirection-issues-using-rank-math-seo/#redirection-debug

    Please let us know how that goes.

    Thank you.

    DII
    Rank Math free

    Also, it has one more issue, some redirects only work when I am logged-in in the same browser, else it shows a page not found.

    DII
    Rank Math free

    I followed the procedure, I do not see any interstitial window for URL 1 to the Home page.

    Also, URL 2 is not redirecting for the users, it works when I am logged in.

    Check the sensitive data for url’s

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include the affected URL & your WordPress login in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    DII
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    DII
    Rank Math free

    URL 1 and URL 2 should redirect to the URL I have mentioned in the sensitive data.

    URL 1 is automatically redirecting to the home page and ignoring the rank math rules.

    URL 2 is not redirecting to the target URL unless I am not logged in.

    Credentials shared, Please try not to disable any plugin, else I’ll have to do lots of setups again.
    Also, I am not using any other redirection plugin.

    The security plugin is not restricting any login for you. I hope you’ll finish the check asap.

    Thanks for your great support and knowledge.

    Hello,

    The issue on the website was caused due to the fact that you have an attachment with that same URL and the function to redirect attachments was enabled under WordPress Dashboard > Rank Math > General Settings > Links.

    After you disabled that option the redirect is working as expected and redirecting to the appropriate page.

    Don’t hesitate to get in touch if you have any other questions.

    DII
    Rank Math free

    Now, URL 1 is redirecting to a separate page and showing one post of exact URL (url1), instead of that it should redirect to the post directly. I’ll see what attachment causing this issue.

    Also, redirecting url2 is not working.

    DII
    Rank Math free

    URL 1 is not redirecting to the parent post. Should I delete the image and reupload it with a different name so the permalink?

    Also, help me with URL2 shared in the Sensitive data. It will only redirect to the link when you are logged in with the site.

    DII
    Rank Math free

    Update:

    I have changed the attached media URL and added a redirection rule for URL 1, also URL 2.

    Both of the URLs redirect to the destination URL but it will only work when you are logged in with wp.

    when a general user types any of the URLs 1 or 2, a 404 page is shown. How to fix it?

    Hello,

    I’ve readded the redirection in Rank Math > Redirections. For the redirect issue when not logged in to your dashboard, you would need to clear your website’s cache on your WordPress dashboard > Settings > Hyper Cache > Clean the whole cache.

    Please check those links now, and they should be working fine.

    I hope that helps.

    Thank you.

    DII
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    DII
    Rank Math free

    Working, Thank you so much.

    Tammy
    Rank Math business

    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 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this ticket.