<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <!-- Homepage -->
  <url>
    <loc>https://classbook.lk/</loc>
    <lastmod>2025-07-31</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>

  <!-- Main Category Pages (assuming common subjects in Sri Lanka) -->
  <!--
    It's generally recommended to include canonical URLs in your sitemap.
    URLs with multiple query parameters like '?q=&district=&town=&subject=Science&page=1'
    can be problematic for SEO as they might be seen as duplicate content or
    less important. If these URLs are the primary way to access filtered content,
    they can be included, but ideally, you'd have cleaner, more descriptive URLs
    for categories (e.g., /subjects/science).

    If the parameters are for filtering, and the resulting page content is
    substantially different and important for search engines, then include them.
    However, if 'page=1' is the default and 'page=2', 'page=3' exist, you should
    also include those paginated URLs.
  -->
  <url>
    <loc>https://classbook.lk/?subject=Science</loc>
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://classbook.lk/?subject=Mathematics</loc>
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://classbook.lk/?subject=English</loc>
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://classbook.lk/?subject=ICT</loc>
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <!-- Example for district-based filtering, assuming district IDs are meaningful -->
  <url>
    <loc>https://classbook.lk/?district=1</loc> <!-- Example: Colombo District -->
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://classbook.lk/?district=4</loc> <!-- Example: Kandy District -->
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <!-- If there are more pages for each subject/district, you should list them: -->
  <!-- <url>
    <loc>https://classbook.lk/?subject=Science&page=2</loc>
    <lastmod>2025-07-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
  </url> -->


  <!-- Example Individual Listing/Class Pages -->
  <!--
    These URLs look like specific ad/class listings, which are good to include.
    Ensure these are live and accessible.
  -->
  <url>
    <loc>https://classbook.lk/ads/view_ad.php?id=83</loc>
    <lastmod>2025-07-30</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://classbook.lk/ads/view_ad.php?id=221</loc>
    <lastmod>2025-07-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <url>
    <loc>https://classbook.lk/ads/view_ad.php?id=206</loc>
    <lastmod>2025-07-28</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>
  <!-- Add more individual ad URLs here -->

  <!-- Static Pages -->
  <!--
    Ensure consistency in URL structure (e.g., all .php, all .html, or all clean URLs).
    Mixing them is not an error, but consistent naming is better for management.
  -->
  <url>
    <loc>https://classbook.lk/blog/blog.php</loc>
    <lastmod>2025-07-25</lastmod>
    <changefreq>weekly</changefreq> <!-- Blog might update more frequently than yearly -->
    <priority>0.6</priority>
  </url>

  <url>
    <loc>https://classbook.lk/about_us.php</loc>
    <lastmod>2025-07-25</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
  </url>

  <url>
    <loc>https://classbook.lk/privacy_policy.html</loc>
    <lastmod>2025-07-25</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>

  <url>
    <loc>https://classbook.lk/terms_of_service.html</loc>
    <lastmod>2025-07-25</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.5</priority>
  </url>

  <url>
    <loc>https://classbook.lk/contact-us.php</loc> <!-- Assuming this should be .php for consistency -->
    <lastmod>2025-07-25</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
  </url>

</urlset>
