Hello, I apologize for the issue you’re facing. To noindex the URLs containing “wp-content/uploads,” you can use Rank Math to set the images to NoIndex. Here’s how you can do it:
-
Noindex All Posts of a Specific Post Type:
- Navigate to WordPress Dashboard → Rank Math SEO → Titles & Meta → Posts.
- Scroll down to find the Post Robots Meta option and enable it.
- Choose the No Index option and click the Save Changes button.
-
Noindex Posts & Pages in the Classic Editor:
- Edit the post containing the image.
- Scroll down to find the Rank Math SEO settings below your post and click on the Advanced tab.
- In the Robots Meta section, check the No Index box.
-
Noindex Posts & Pages in Gutenberg:
- Edit the post containing the image.
- Head over to the Advanced tab and click on the No Index checkbox.
You can follow these steps to noindex the images on your website. If you have any further questions or need assistance with this process, feel free to ask!
Sources:
How to Noindex URLs With Rank Math » Rank Math
Fix Excluded by NoIndex Tag – Google Search Console Status » Rank Math
How to Fix Submitted URL Marked ‘NoIndex’ Error » Rank Math
Hello,
Thank you for your query, and we are so sorry about the trouble this must have caused.
To tell search engines not to index an image, you will have to use the X-Robots-Tag HTTP header with a value of ‘noindex’.
Add the following code to your .htaccess file:
<IfModule mod_headers.c>
<FilesMatch "\.(png|jpe?g|gif)$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
</IfModule>
Learn “How to Edit Your htaccess File Using Rank Math” here:
https://rankmath.com/kb/edit-htaccess/
If you’re using any caching mechanisms on your website, clear the cache after updating the .htaccess file.
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
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.