• maxfrederick2

    (@maxfrederick2)


    I have about 250 media files mostly pdfs, some doc and am trying to figure out the best way to noidex nofollow them. Is there a way I can do this in bulk?

    • This topic was modified 3 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Vijay Hardaha

    (@vijayhardaha)

    All those files are on being used on the same page/post or different pages/posts?

    Thread Starter maxfrederick2

    (@maxfrederick2)

    Hey @vijayhardaha thanks for the reply. So they are on different pages and posts.

    Vijay Hardaha

    (@vijayhardaha)

    You might be able to use the search-replace plugin to replace post content but to do that you’ll have to find a way to match those content only so that it doesn’t change anything else.

    For example: <a href="https://example.com/this-is-pdf-file-url.pdf" rel="nofollow">....</a> this is the URL
    so you can try to search for .pdf" rel="nofollow and replace with .pdf" rel="no-idex nofollow (just example)

    You need to find a better way to match things to perform a replacement. and don’t test things on the live website. create a staging website to test things first then do anything on life after taking a full backup.

    Thread Starter maxfrederick2

    (@maxfrederick2)

    Thanks for this. I will look into it a bit.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to no-index multiple media files’ is closed to new replies.