Activating Rank Math causes Viewing a media item in Library to redirect to home

#787137
  • Resolved Anonymous
    Rank Math free

    Hi might you know or guess why activating Rank Math causes Viewing a media item in my WordPress Media Library to redirect to my home page.

    If I deactivate Rank Math (and Rank Math Pro, which I have), then when I click “View” under a media item in my media library, ad image of the media item appears, as it should.

    But if I then activate Rank Math, and even if I then deactivate all redirects in Rank Math, then when I click “View” under a media item in my media library, I am taken straight to my home page instead to a view of the media item.

    Your Rank Bot recommends I disable Redirect Orphan Attachments to address this issue, but I do not have a Redirect Orphan Attachments option under Links under the General Settings of Rank Math as Rank Bot suggests that I should.

    Any help will be appreciated!

    Thanks,

    Jonathan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I apologize for the issue you are facing with Rank Math causing viewing a media item in your WordPress Media Library to redirect to your home page. This behavior might be due to the settings within Rank Math.

    To address this problem, you can try the following steps:

    1. Disable Redirect Orphan Attachments: Since you mentioned that you do not have the Redirect Orphan Attachments option under Links in the General Settings of Rank Math, you can try enabling the Redirect Attachments option first. To do this, navigate to Rank Math SEO → General Settings → Links inside your WordPress dashboard. Enable the Redirect Attachments option and save the changes. This might help resolve the redirection issue.

    2. Check for Plugin Conflict: Sometimes conflicts with other plugins can cause unexpected behavior. You can temporarily deactivate other plugins one by one to see if any of them are conflicting with Rank Math and causing the redirection problem.

    If after trying these steps, the issue persists, please reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for reaching out, and we appreciate your understanding as we work to resolve this issue for you.

    Best regards,

    Sources:
    Should You Redirect Attachment Page URLs? » Rank Math
    How to Redirect Attachments to the Media URL with Rank Math » Rank Math
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    Why You Shouldn’t Duplicate Posts/Pages » Rank Math

    Hello,

    When you upload a media file to the WordPress Media Library, WordPress creates a separate media attachment page for each file, and having the attachment pages as “noindex” or redirecting to the parent page is actually the preferred method to handle those and we mention the same here:
    https://rankmath.com/kb/should-you-redirect-attachments/

    In essence, this means that there’s nothing to worry about the attachment pages as the images from the website can and will still be indexed, it’s just the attachment pages, which don’t hold any SEO value, that will not get indexed.

    However, if you’re using the attachment page, then you can disable the redirect attachment option in Rank Math > General Settings > Links. If it’s not showing, you must have chosen to use Easy Mode.

    You can follow the steps in this link to switch to Advanced Mode:
    https://rankmath.com/kb/advanced-mode/

    Hope that helps.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Activating Rank Math causes Viewing a media item in Library to redirect to home’ is closed to new replies.