Redirect Attachments and Orphan Media Not Working

#68970
  • Hello!

    Im currently using DO Spaces sync and due to attachments being on i.stringerssociety.com (CDN) the rank math redirect attachment links and orphan media is not working. When crawling the site I have found over 700 links to image urls. Do you have a solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

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

    I think we might need to take a closer look at the settings and try to find a solution. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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.

    Based on how my servers set up you wont be able to do anything you cant walk me through.

    Hello,

    You can add a the following line of redirect code to the top of your image.php file (this file is available as part of your theme).

    
    <?php wp_redirect(get_permalink($post->post_parent)) ; ?>
    
    

    Hope that helps. If you have any further question(s), please let us know. Thank you.

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

The ticket ‘Redirect Attachments and Orphan Media Not Working’ is closed to new replies.