Expand my Community achievements bar.

how to create sitemaps for particular document folder for pdf and doc extension files in AEM 6.5


Level 3



I want to Create sitemaps for particular document folder path ("TestingSite/documnet") only for pdf and doc extension files.




1 Reply


Community Advisor

To create a sitemap for a specific folder containing PDF and DOC files, you can follow these steps:

List all PDF and DOC files in the target folder: First, you need to gather a list of all the PDF and DOC files in the "TestingSite/document" folder. You can do this manually or by using a script or tool to scan the folder and generate a list of files with their URLs.

Create an XML sitemap: Once you have the list of URLs for the PDF and DOC files, you can create an XML sitemap. Here's an example of how to structure your sitemap:


<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
<!-- Add more <url> entries for each PDF and DOC file -->

Replace the example URLs and dates with the actual URLs and last modification dates of your PDF and DOC files.

Save the XML file: Save the XML content to a file named "sitemap.xml" or any other name you prefer. Make sure the file extension is ".xml".

Upload the sitemap to your web server: Upload the sitemap file to your web server, ideally placing it in the root directory of your website (e.g., "https://www.example.com/sitemap.xml").

Submit the sitemap to search engines: To ensure search engines index your PDF and DOC files, submit your sitemap to major search engines like Google and Bing. You can do this through their respective webmaster tools (e.g., Google Search Console, Bing Webmaster Tools).

That's it!