No Index Images | With code

More
11 years 1 month ago #41925 by igcorreia
Please consider in the METADATA tab and SEO add this trick.

No index images:
Code:
$document = &JFactory::getDocument(); $document->setMetaData('robots','noimageindex');

This is need for category and item because is a per page attribute.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41931 by ggppdk
Replied by ggppdk on topic No Index Images | With code
Hello

ok but if some other site links to the images, then the images will still be indexed

maybe it is better to exclude the top-level folder that contains the images ?

e.g. add to your robots.txt file:

User-agent: *
Disallow: /images/image_field_folder/


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41974 by igcorreia
My problem is that this is an old site and all images are in the same folder. I don't want to remove all images, I only want to remove the images of a content type or a specific field.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #41976 by ggppdk
Replied by ggppdk on topic No Index Images | With code
Hello

googlebot can understand some basic pattern matching:

stackoverflow.com/questions/6306 ... robots-txt


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.313 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline