NoIndex Images URL
- This topic has 7 replies, 2 voices, and was last updated 1 year, 8 months ago by .
- December 3, 2019 at 12:41 pm #910b0ttr
What’s the easiest way to disable indexing of Media and Assets folders in Publii?
All images and assets URLs are indexed by Google which is not ideal.December 3, 2019 at 4:35 pm #916Bob
I think you can try to use robots.txt with the following rules:
Block one folder
Block one file
More detailed information you can find here: https://moz.com/learn/seo/robotstxtDecember 3, 2019 at 4:40 pm #917b0ttr
Robots.txt only works after you’ve NoIndexed existing image URLs. Otherwise Googlebot will never be able to reach those URLs in the first place.
If there’s no direct/simple way to achieve this, another way of addressing my concern would be – how to ensure Publii doesn’t generate dedicated pages/URLs for Images? This has been a major issue with Yoast SEO on WordPress sites in the past.December 3, 2019 at 4:50 pm #918Bob
What do you mean by dedicated pages/URLs for Images?December 3, 2019 at 4:55 pm #919b0ttr
So I see links like `https://example.com/media/posts/2/abc.jpg` generated from my posts where I’ve uploaded pics.December 3, 2019 at 5:02 pm #920Bob
Yes, this is normal behavior; images must be located somewhere, and if you want to display them on a web page linked from that location.
To remove the full src path, you can try to use Relative URLs in server settings, but I’m not sure if it helps.December 3, 2019 at 5:18 pm #921b0ttr
Is there no way to add NoIndex tag on images URL?December 3, 2019 at 5:24 pm #922Bob
There is no Noindex tag for an image element, instead, try to use X-Robots-Tag https://developers.google.com/search/reference/robots_meta_tag
- You must be logged in to reply to this topic.