June 15

How to Use:

How to Use:

  1. Dynamic Pages: If you have many such PHP pages (like ytil_avto.php, ytil_instrument.php, etc.), you can dynamically generate this sitemap via PHP or a CMS. For example, you might loop through your list of pages and print out the <url> elements.
  2. Search Engines: Once you have this sitemap, you can submit it to Google Search Console or any other search engine tools to help them crawl and index your pages efficiently.

PHP Example to Dynamically Create Sitemap:

If you'd like to generate this XML sitemap dynamically in PHP, here's an example:

$pages = [
    'ytil_styo', 'ytil_avto', 'ytil_instrument', 'ytil_izdel', 
    'ytil_katritz', 'ytil_med_tex', 'ytil_ognetushitel', 'ytil_otxod'
];

header("Content-type: text/xml");

echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

foreach ($pages as $page) {
    echo '<url>';
    echo '<loc>https://сайт.рф/?page=' . $page . '</loc>';
    echo '<lastmod>2025-02-07T00:00:00+01:00</lastmod>';
    echo '<priority>0.5</priority>';
    echo '</url>';
}

echo '</urlset>';