Is it possible to exclude certain directories in the DAM from Google Search engine indexing?
Is it done at dispatcher level?
Can someone give details on how we can make this possible?
Solved! Go to Solution.
Views
Replies
Total Likes
you can place this file anywhere in the AEM but it must be served from domain root(This can be achieved using apache/dispatcher redirect rules e.g. https://github.com/arunpatidar02/aemaacs-aemlab/blob/c4e2ab400f561acc3127dba662a2f1f6c397d340/dispat... )
e.g. https://www.mydomain.com/robots.txt
you can try adding those path in robots.txt
@arunpatidar is that file something residing in publisher or dispatcher? Could you please give me some more details?
you can place this file anywhere in the AEM but it must be served from domain root(This can be achieved using apache/dispatcher redirect rules e.g. https://github.com/arunpatidar02/aemaacs-aemlab/blob/c4e2ab400f561acc3127dba662a2f1f6c397d340/dispat... )
e.g. https://www.mydomain.com/robots.txt
Thank you @arunpatidar
As Arun mentioned, we can add the paths which should not be crawled by search engines in robots.txt
Robots.txt file should be available at root level (Ex: https://www.example.com/robots.txt)
You can have the file available in publisher and add redirection in dispatcher file so that it will load at root level as url provided above.
More details of robots.txt can be found in
Yes, it is possible to exclude certain directories in the DAM from Google Search engine indexing in AEM. This can be done by setting the robots.txt file to disallow search engine bots from indexing those directories. Additionally, you can also add a meta tag to the HTML of the pages you want to exclude, which will prevent search engines from indexing them.
Also This can be done at the dispatcher level. You can configure the dispatcher.any file to exclude certain paths or directories from being indexed by Google.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies