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
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.example.com/TestingSite/document/file1.pdf</loc>
<lastmod>2023-04-01</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://www.example.com/TestingSite/document/file2.doc</loc>
<lastmod>2023-04-02</lastmod>
<changefreq>monthly</changefreq>
</url>
<!-- Add more <url> entries for each PDF and DOC file -->
</urlset>
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!