{"id":2699,"date":"2025-08-17T20:38:47","date_gmt":"2025-08-17T13:38:47","guid":{"rendered":"https:\/\/siammakemoney.com\/?p=2699"},"modified":"2025-08-19T21:26:23","modified_gmt":"2025-08-19T14:26:23","slug":"sitemap-xml","status":"publish","type":"post","link":"https:\/\/siammakemoney.com\/de\/sitemap-xml\/","title":{"rendered":"So erstellen Sie eine sitemap.xml mit Ihrem eigenen Code (Sitemap-Indexdatei)"},"content":{"rendered":"<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-c8cdb34af6fd810e65dbedd894bbe172\" style=\"color:#336864;font-size:28px\">Erstellen Sie einen einfachen und grundlegenden Sitemap-Index sitemap.xml<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Erstellen einer sitemap.xml-Datei mit Python-Code, um Suchmaschinen dabei zu helfen, unsere Webseiten zu erkennen. Es gibt ein Beispiel f\u00fcr eine statische Website, die HTML- und PHP-Dateien verwendet, sowie Anweisungen zur Verwendung und zum Senden an Google und Bing \u00fcber die Search Console oder eine Ping-URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Eine Sitemap ist eine Datei, die die URLs wichtiger Seiten Ihrer Website zusammenfasst. Sie erleichtert Suchmaschinen das Verst\u00e4ndnis und die Navigation auf Ihren Seiten. Das wirkt sich positiv auf die SEO und den Traffic aus. So erstellen und \u00fcbermitteln Sie eine Sitemap an Google f\u00fcr maximale Effizienz.<\/p>\n\n\n<style scoped>\n            .gc-box{margin-bottom:30px;padding:20px;border-left:5px solid transparent;line-height:24px}.gc-box .label-info{background-color:#5bc0de;display:inline-block;margin:0 5px 10px 0;padding:3px 6px;font-size:75%;font-weight:700;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;line-height:14px}.gc-box.green_type{color:#3c763d;background-color:#dff0d8;border-color:#cae6be}.gc-box.blue_type{color:#31708f;background-color:#d9edf7;border-color:#bcdff1}.gc-box.red_type{color:#a94442;background-color:#f2dede;border-color:#e8c4c4}.gc-box.grey_type{background:#ddd;border-color:#ccc;color:#444}.gc-box.info_type{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.gc-box.info_type svg{fill:#30a030}.gc-box.download_type{color:#004085;background-color:#cce5ff;border-color:#b8daff}.gc-box.download_type svg{fill:#3a9aff}.gc-box.update_type{color:#004458;background-color:#d9edf7;border:1px solid #bce8f1}.gc-box.notice_type{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.gc-box.notice_type svg{fill:#f7a000}.gc-box.error_type{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.gc-box.error_type svg{fill:#c70000}.gc-box.border_type{border:2px solid #ddd}.gc-box.icon_type{display:flex}.gc-box.icon_type .gc-box-icon{width:28px}.gc-box.icon_type .gc-box-text{flex-grow:1;margin:0 15px}.gc-box-text > *{margin-bottom: 20px;}\n        .gc-box-text > *:last-child{margin-bottom:0}        \n        <\/style><div class=\"gc-box border_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-51055fbf0388df6c69b33d911bf8dd7c\" style=\"color:#1a8079;font-size:30px\">1. Sitemaps und Sitemap-Indizes verstehen<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Sitemap<\/strong>: Es handelt sich um eine XML-Datei, die Suchmaschinen wie Google mitteilt, welche Seiten sich auf unserer Website befinden.<\/li>\n\n\n\n<li><strong>Sitemap-Index<\/strong>: Es handelt sich um eine XML-Datei, die mehrere Unter-Sitemaps kombiniert und so die Verwaltung gro\u00dfer Websites erleichtert.<\/li>\n<\/ul>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-4ed54ffd6bbffb7b553baccf8f8027dd\" style=\"color:#1a8079;font-size:33px\">2. Standardstruktur von <code>sitemap.xml<\/code><\/h2>\n\n\n\n<pre class=\"wp-block-code has-layout-color has-primary-background-color has-text-color has-background has-link-color wp-elements-e40b4577af5bec78e62226967e473053\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;urlset xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;\n   &lt;url&gt;\n      &lt;loc&gt;https:\/\/yourdomain.com\/&lt;\/loc&gt;\n      &lt;lastmod&gt;2025-08-17&lt;\/lastmod&gt;\n      &lt;changefreq&gt;weekly&lt;\/changefreq&gt;\n      &lt;priority&gt;1.0&lt;\/priority&gt;\n   &lt;\/url&gt;\n   &lt;url&gt;\n      &lt;loc&gt;https:\/\/yourdomain.com\/about&lt;\/loc&gt;\n      &lt;lastmod&gt;2025-08-10&lt;\/lastmod&gt;\n      &lt;changefreq&gt;monthly&lt;\/changefreq&gt;\n      &lt;priority&gt;0.8&lt;\/priority&gt;\n   &lt;\/url&gt;\n&lt;\/urlset&gt;\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>&lt;loc&gt;<\/code> = URL der Webseite<\/li>\n\n\n\n<li><code>&lt;lastmod&gt;<\/code> = Datum der letzten Aktualisierung (Format <code>JJJJ-MM-TT<\/code>)<\/li>\n\n\n\n<li><code>&lt;changefreq&gt;<\/code> = Erwartete Aktualisierungsh\u00e4ufigkeit (<code>immer, st\u00fcndlich, t\u00e4glich, w\u00f6chentlich, monatlich, j\u00e4hrlich, nie<\/code>)<\/li>\n\n\n\n<li><code>&lt;priority&gt;<\/code> = Wichtigkeitswert (0,0 \u2013 1,0)<\/li>\n<\/ul>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-81fe5f9902deff5bc85eca39e6c34165\" style=\"color:#1a8079;font-size:28px\">3. Beispiel-Python-Code zur Erstellung <code>sitemap.xml<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Dieser Code liest eine Liste von URLs und schreibt f\u00fcr Sie eine sitemap.xml-Datei.<\/p>\n\n\n\n<pre class=\"wp-block-code has-layout-color has-primary-background-color has-text-color has-background has-link-color wp-elements-9bb92c555b4aef21e53d696222667d1a\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>import datetime\n\n\ndomain = \"https:\/\/yourdomain.com\"\npages = &#91;\n    \"\/\", \n    \"\/about\", \n    \"\/contact\", \n    \"\/products\", \n    \"\/blog\"\n]\n\ntoday = datetime.date.today().isoformat()\n\nsitemap_path = \"sitemap.xml\"\n\nwith open(sitemap_path, \"w\", encoding=\"utf-8\") as f:\n    f.write('&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\\n')\n    f.write('&lt;urlset xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;\\n')\n\n    for page in pages:\n        f.write(\"  &lt;url&gt;\\n\")\n        f.write(f\"    &lt;loc&gt;{domain}{page}&lt;\/loc&gt;\\n\")\n        f.write(f\"    &lt;lastmod&gt;{today}&lt;\/lastmod&gt;\\n\")\n        f.write(\"    &lt;changefreq&gt;weekly&lt;\/changefreq&gt;\\n\")\n        f.write(\"    &lt;priority&gt;0.8&lt;\/priority&gt;\\n\")\n        f.write(\"  &lt;\/url&gt;\\n\")\n\n    f.write(\"&lt;\/urlset&gt;\\n\")\n\n\nprint(\"Sitemap index created successfully!\")\n\n<\/code><\/pre>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-81126ab25a02d9f88c68df1cc553be65\" style=\"color:#1a8079;font-size:30px\">4. Erstellen Sie eine Sitemap f\u00fcr eine statische Website<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-bbc613cd338dc0905678b7a178f71d37\" style=\"color:#e46618;font-size:25px\">4.1 F\u00fcr (einfache .HTML-Dateien) statische Seiten<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn Ihre Website <strong>Statische Website (einfaches HTML)<\/strong> Und es gibt viele Seiten wie<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#faf2e5\" data-no-translation=\"\" data-no-auto-translation=\"\"><code><strong><em>\/index.html  \n\/about.html  \n\/contact.html  \n\/blog.html  \n\/products\/product1.html  \n\/products\/product2.html<\/em><\/strong><\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Python-Codebeispiel zum Erstellen einer Sitemap f\u00fcr eine statische Website<\/h5>\n\n\n\n<pre class=\"wp-block-code has-layout-color has-primary-background-color has-text-color has-background has-link-color wp-elements-74cd5f3769c73228722652c73bcd71b7\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>import os, datetime\n\n\ndomain = \"https:\/\/yourdomain.com\"\nweb_dir = \".\/public_html\"  \ntoday = datetime.date.today().isoformat()\n\nurls = &#91;]\n\n\nfor root, dirs, files in os.walk(web_dir):\n    for file in files:\n        if file.endswith(\".html\"):\n            rel_path = os.path.relpath(os.path.join(root, file), web_dir)\n            url = \"\/\" + rel_path.replace(\"\\\\\", \"\/\")\n            if url.endswith(\"index.html\"):\n                url = url.replace(\"index.html\", \"\") \n            urls.append(url)\n\n\nsitemap_path = os.path.join(web_dir, \"sitemap.xml\")\nwith open(sitemap_path, \"w\", encoding=\"utf-8\") as f:\n    f.write('&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\\n')\n    f.write('&lt;urlset xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;\\n')\n    for url in urls:\n        f.write(\"  &lt;url&gt;\\n\")\n        f.write(f\"    &lt;loc&gt;{domain}{url}&lt;\/loc&gt;\\n\")\n        f.write(f\"    &lt;lastmod&gt;{today}&lt;\/lastmod&gt;\\n\")\n        f.write(\"    &lt;changefreq&gt;monthly&lt;\/changefreq&gt;\\n\")\n        f.write(\"    &lt;priority&gt;0.5&lt;\/priority&gt;\\n\")\n        f.write(\"  &lt;\/url&gt;\\n\")\n    f.write(\"&lt;\/urlset&gt;\\n\")\n\nprint(\"Sitemap index created successfully!\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Dieser Code scannt alle HTML-Dateien in Ihrem Webordner und schreibt automatisch eine Sitemap.xml.<\/p>\n\n\n<div class=\"gc-box notice_type icon_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><svg x=\"0px\" y=\"0px\" viewbox=\"0 0 486.463 486.463\" > <g> <g> <path d=\"M243.225,333.382c-13.6,0-25,11.4-25,25s11.4,25,25,25c13.1,0,25-11.4,24.4-24.4 C268.225,344.682,256.925,333.382,243.225,333.382z\"\/> <path d=\"M474.625,421.982c15.7-27.1,15.8-59.4,0.2-86.4l-156.6-271.2c-15.5-27.3-43.5-43.5-74.9-43.5s-59.4,16.3-74.9,43.4 l-156.8,271.5c-15.6,27.3-15.5,59.8,0.3,86.9c15.6,26.8,43.5,42.9,74.7,42.9h312.8 C430.725,465.582,458.825,449.282,474.625,421.982z M440.625,402.382c-8.7,15-24.1,23.9-41.3,23.9h-312.8 c-17,0-32.3-8.7-40.8-23.4c-8.6-14.9-8.7-32.7-0.1-47.7l156.8-271.4c8.5-14.9,23.7-23.7,40.9-23.7c17.1,0,32.4,8.9,40.9,23.8 l156.7,271.4C449.325,369.882,449.225,387.482,440.625,402.382z\"\/> <path d=\"M237.025,157.882c-11.9,3.4-19.3,14.2-19.3,27.3c0.6,7.9,1.1,15.9,1.7,23.8c1.7,30.1,3.4,59.6,5.1,89.7 c0.6,10.2,8.5,17.6,18.7,17.6c10.2,0,18.2-7.9,18.7-18.2c0-6.2,0-11.9,0.6-18.2c1.1-19.3,2.3-38.6,3.4-57.9 c0.6-12.5,1.7-25,2.3-37.5c0-4.5-0.6-8.5-2.3-12.5C260.825,160.782,248.925,155.082,237.025,157.882z\"\/> <\/g> <\/g> <\/svg><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Verwendung<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Legen Sie diesen Code in Ihren Projektordner (z. B. <code>generate_sitemap.py<\/code>)<\/li>\n\n\n\n<li>Ausf\u00fchren mit <code>python generate_sitemap.py<\/code><\/li>\n\n\n\n<li>Sie erhalten die Datei <code>sitemap.xml<\/code> Befindet sich an der Wurzel (<code>public_html\/sitemap.xml<\/code>)<\/li>\n\n\n\n<li>Im Browser \u00f6ffnen \u2192 <code>https:\/\/yourdomain.com\/sitemap.xml<\/code><\/li>\n\n\n\n<li>An Google und Bing senden (Search Console oder Ping-URL verwenden)<\/li>\n<\/ol>\n\n<\/div>\n\t\t<\/div>\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-23fac1582b461e9e8f892b351313494b\" style=\"color:#e46618;font-size:25px\">4.2 F\u00fcr statische Websites, die .php-Dateien verwenden (statische Seiten)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn es sich bei Ihrer Website um eine statische Website handelt, die PHP-Dateien verwendet (z. B. index.php, about.php, contact.php), ist die Methode zum Erstellen einer sitemap.xml \u00e4hnlich wie im HTML-Fall, mit der Ausnahme, dass wir stattdessen die PHP-Datei abrufen m\u00fcssen.<\/p>\n\n\n\n<pre class=\"wp-block-code has-background\" style=\"background-color:#faf2e5\" data-no-translation=\"\" data-no-auto-translation=\"\"><code><strong><em>\/index.php\n\/about.php\n\/contact.php\n\/blog.php\n\/products\/product1.php\n\/products\/product2.php<\/em><\/strong><\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Python-Code zur Erstellung <code>sitemap.xml<\/code> Aus Datei <code>.php<\/code><\/h5>\n\n\n\n<pre class=\"wp-block-code has-layout-color has-primary-background-color has-text-color has-background has-link-color wp-elements-74b54ea1680cc10c12d5aa3f118addb8\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>import os, datetime\n\n\ndomain = \"https:\/\/yourdomain.com\"\nweb_dir = \".\/public_html\" \ntoday = datetime.date.today().isoformat()\n\nurls = &#91;]\n\n\nfor root, dirs, files in os.walk(web_dir):\n    for file in files:\n        if file.endswith(\".php\"):\n            rel_path = os.path.relpath(os.path.join(root, file), web_dir)\n            url = \"\/\" + rel_path.replace(\"\\\\\", \"\/\")\n            if url.endswith(\"index.php\"):\n                url = url.replace(\"index.php\", \"\")\n            urls.append(url)\n\n\nsitemap_path = os.path.join(web_dir, \"sitemap.xml\")\nwith open(sitemap_path, \"w\", encoding=\"utf-8\") as f:\n    f.write('&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\\n')\n    f.write('&lt;urlset xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;\\n')\n    for url in urls:\n        f.write(\"  &lt;url&gt;\\n\")\n        f.write(f\"    &lt;loc&gt;{domain}{url}&lt;\/loc&gt;\\n\")\n        f.write(f\"    &lt;lastmod&gt;{today}&lt;\/lastmod&gt;\\n\")\n        f.write(\"    &lt;changefreq&gt;monthly&lt;\/changefreq&gt;\\n\")\n        f.write(\"    &lt;priority&gt;0.5&lt;\/priority&gt;\\n\")\n        f.write(\"  &lt;\/url&gt;\\n\")\n    f.write(\"&lt;\/urlset&gt;\\n\")\n\nprint(\"Sitemap index created successfully!\")<\/code><\/pre>\n\n\n<div class=\"gc-box notice_type icon_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><svg x=\"0px\" y=\"0px\" viewbox=\"0 0 486.463 486.463\" > <g> <g> <path d=\"M243.225,333.382c-13.6,0-25,11.4-25,25s11.4,25,25,25c13.1,0,25-11.4,24.4-24.4 C268.225,344.682,256.925,333.382,243.225,333.382z\"\/> <path d=\"M474.625,421.982c15.7-27.1,15.8-59.4,0.2-86.4l-156.6-271.2c-15.5-27.3-43.5-43.5-74.9-43.5s-59.4,16.3-74.9,43.4 l-156.8,271.5c-15.6,27.3-15.5,59.8,0.3,86.9c15.6,26.8,43.5,42.9,74.7,42.9h312.8 C430.725,465.582,458.825,449.282,474.625,421.982z M440.625,402.382c-8.7,15-24.1,23.9-41.3,23.9h-312.8 c-17,0-32.3-8.7-40.8-23.4c-8.6-14.9-8.7-32.7-0.1-47.7l156.8-271.4c8.5-14.9,23.7-23.7,40.9-23.7c17.1,0,32.4,8.9,40.9,23.8 l156.7,271.4C449.325,369.882,449.225,387.482,440.625,402.382z\"\/> <path d=\"M237.025,157.882c-11.9,3.4-19.3,14.2-19.3,27.3c0.6,7.9,1.1,15.9,1.7,23.8c1.7,30.1,3.4,59.6,5.1,89.7 c0.6,10.2,8.5,17.6,18.7,17.6c10.2,0,18.2-7.9,18.7-18.2c0-6.2,0-11.9,0.6-18.2c1.1-19.3,2.3-38.6,3.4-57.9 c0.6-12.5,1.7-25,2.3-37.5c0-4.5-0.6-8.5-2.3-12.5C260.825,160.782,248.925,155.082,237.025,157.882z\"\/> <\/g> <\/g> <\/svg><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Verwendung<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Platzieren Sie diese Skriptdatei in Ihrem Projektordner (z. B. <code>generate_sitemap.py<\/code>)<\/li>\n\n\n\n<li>Ausf\u00fchren mit <code>python generate_sitemap.py<\/code><\/li>\n\n\n\n<li>Sie erhalten die Datei <code>sitemap.xml<\/code> Befindet sich an der Wurzel (<code>public_html\/sitemap.xml<\/code>)<\/li>\n\n\n\n<li>Versuchen Sie, es in einem Browser zu \u00f6ffnen \u2192 <code>https:\/\/<code>yourdomain<\/code>.com\/sitemap.xml<\/code><\/li>\n\n\n\n<li>Nimm es weg <strong>An Google Search Console \/ Bing Webmaster senden<\/strong><\/li>\n<\/ol>\n\n<\/div>\n\t\t<\/div>\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-1d0e923835c66ddc8b439676f1ae128f\" style=\"color:#1a8079;font-size:30px\">5. Erstellen Sie eine sitemap.xml f\u00fcr <strong>Gemeinsam genutztes Hosting<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn Sie Shared Hosting verwenden, ist dies dadurch eingeschr\u00e4nkt, dass Sie keine Python-Dateien direkt auf dem Shared Hosting ausf\u00fchren d\u00fcrfen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-6fb5bfe6424542ff38b624517cb57c7c\" style=\"color:#e46618;font-size:27px\">Es gibt also zwei M\u00f6glichkeiten, sitemap.xml automatisch zu generieren.<\/h3>\n\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:0px;\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h4 class=\"wp-block-heading has-text-color has-link-color wp-elements-2c8640e04290cf046f65eb1aea749dff\" style=\"color:#922dae;font-size:20px\">\ud83d\udd39 Option 1 (am einfachsten) \u2013 Verwenden Sie Ihren lokalen Computer zum Erstellen und Hochladen.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Installieren Sie Python auf Ihrem Computer<\/strong> (Windows\/Mac)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">F\u00fchren Sie das Python-Skript aus \u2192 Sie erhalten eine Datei <code>sitemap.xml<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00d6ffnen Sie die Eingabeaufforderung (Windows) oder das Terminal (Mac\/Linux) und geben Sie Folgendes ein:<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-orange-background-color has-text-color has-background has-link-color wp-elements-22700d9d69990481ae4f3467d652115e\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>python generate_sitemap.py<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Datei hochladen <code>sitemap.xml<\/code> Gehe zu <code>\u00f6ffentliche_html\/<\/code> des Hostings durch <strong>Dateimanager \/ FTP<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Gehen Sie zum Browser \u2192<\/p>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-orange-background-color has-text-color has-background has-link-color wp-elements-4c40ab6e95de4767b35e8fb6aea06158\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>https:&#47;&#47;yourdomain.com\/sitemap.xml<\/code><\/pre>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:0px;\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h4 class=\"wp-block-heading has-text-color has-link-color wp-elements-c60cce5e7233d756e1a3bfa2ac3acf73\" style=\"color:#922dae;font-size:20px\">\ud83d\udd39 Option 2 \u2013 Verwenden Sie PHP, um eine Sitemap auf Ihrem Hosting zu erstellen.<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn Sie Python nicht lokal ausf\u00fchren m\u00f6chten, k\u00f6nnen Sie PHP-Code schreiben, um automatisch eine sitemap.xml zu generieren.<\/p>\n\n\n\n<pre class=\"wp-block-code has-layout-color has-primary-background-color has-text-color has-background has-link-color wp-elements-cc889b7e760069b369c38ad22f15fc95\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>&lt;?php\n$domain = \"https:\/\/yourdomain.com\";\n$web_dir = __DIR__; \/\/ public_html\n$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($web_dir));\n$urls = &#91;];\n\nforeach ($files as $file) {\n    if ($file-&gt;isFile() &amp;&amp; pathinfo($file, PATHINFO_EXTENSION) === \"php\") {\n        $path = str_replace($web_dir, \"\", $file-&gt;getPathname());\n        $url = str_replace(\"\\\\\", \"\/\", $path);\n        if (basename($url) === \"index.php\") {\n            $url = str_replace(\"index.php\", \"\", $url);\n        }\n        $urls&#91;] = $url;\n    }\n}\n\n$today = date(\"Y-m-d\");\n$sitemap = '&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;' . \"\\n\";\n$sitemap .= '&lt;urlset xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;' . \"\\n\";\n\nforeach ($urls as $url) {\n    $sitemap .= \"  &lt;url&gt;\\n\";\n    $sitemap .= \"    &lt;loc&gt;{$domain}{$url}&lt;\/loc&gt;\\n\";\n    $sitemap .= \"    &lt;lastmod&gt;{$today}&lt;\/lastmod&gt;\\n\";\n    $sitemap .= \"    &lt;changefreq&gt;monthly&lt;\/changefreq&gt;\\n\";\n    $sitemap .= \"    &lt;priority&gt;0.5&lt;\/priority&gt;\\n\";\n    $sitemap .= \"  &lt;\/url&gt;\\n\";\n}\n\n$sitemap .= \"&lt;\/urlset&gt;\";\n\nfile_put_contents($web_dir . \"\/sitemap.xml\", $sitemap);\n\necho \"\u2705 Sitemap created at {$domain}\/sitemap.xml\";\n?&gt;\n<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">\ud83d\udd39 Verwendung<\/h6>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Als Datei speichern <code>generate_sitemap.php<\/code><\/li>\n\n\n\n<li>Hochladen auf <code>\u00f6ffentliche_html\/<\/code><\/li>\n\n\n\n<li>Rufen Sie Dateien \u00fcber das Web ab, wie zum Beispiel:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-orange-background-color has-background\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>https:&#47;&#47;yourdomain.com\/generate_sitemap.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sie erhalten die Datei <code>sitemap.xml<\/code> Unmittelbar an der Wurzel<\/li>\n<\/ul>\n\n<\/div>\n\t\t<\/div>\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box border_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<h2 class=\"wp-block-heading has-text-color has-link-color wp-elements-f241334b63c73b813a8ec88f8f54ab0a\" style=\"color:#1a8079;font-size:33px\">6. Es gibt eine neue sitemap.xml-Seite, die automatisch aktualisiert wird.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sie m\u00f6chten geben <strong>Wenn eine neue Seite hinzugef\u00fcgt wird (.php)<\/strong> \u2192 <code>sitemap.xml<\/code> Die Aktualisierung erfolgt automatisch. Da Python nicht direkt ausgef\u00fchrt werden kann, verwenden wir ein PHP-Skript, um die .php-Datei in public_html jedes Mal zu \u00fcberpr\u00fcfen und eine neue sitemap.xml zu schreiben.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-fdae2986c5d64973b5dbb69f9e471117\" style=\"color:#e46618;font-size:25px\">PHP-Code: Sitemap bei jeder Ausf\u00fchrung automatisch generieren<\/h3>\n\n\n\n<pre class=\"wp-block-code has-layout-color has-primary-background-color has-text-color has-background has-link-color wp-elements-eb766c9d57cc70511bd3982919b13d59\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>&lt;?php\n\n$domain = \"https:\/\/yourdomain.com\";\n$web_dir = __DIR__; \/\/ public_html\n$today = date(\"Y-m-d\");\n\n$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($web_dir));\n$urls = &#91;];\n\nforeach ($files as $file) {\n    if ($file-&gt;isFile() &amp;&amp; pathinfo($file, PATHINFO_EXTENSION) === \"php\") {\n        $path = str_replace($web_dir, \"\", $file-&gt;getPathname());\n        $url = str_replace(\"\\\\\", \"\/\", $path);\n\n        if (basename($url) === \"index.php\") {\n            $url = str_replace(\"index.php\", \"\", $url);\n        }\n\n        $urls&#91;] = $url;\n    }\n}\n\n\/\/  sitemap.xml\n$sitemap = '&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;' . \"\\n\";\n$sitemap .= '&lt;urlset xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;' . \"\\n\";\n\nforeach ($urls as $url) {\n    $sitemap .= \"  &lt;url&gt;\\n\";\n    $sitemap .= \"    &lt;loc&gt;{$domain}{$url}&lt;\/loc&gt;\\n\";\n    $sitemap .= \"    &lt;lastmod&gt;{$today}&lt;\/lastmod&gt;\\n\";\n    $sitemap .= \"    &lt;changefreq&gt;monthly&lt;\/changefreq&gt;\\n\";\n    $sitemap .= \"    &lt;priority&gt;0.5&lt;\/priority&gt;\\n\";\n    $sitemap .= \"  &lt;\/url&gt;\\n\";\n}\n\n$sitemap .= \"&lt;\/urlset&gt;\";\n\nfile_put_contents($web_dir . \"\/sitemap.xml\", $sitemap);\n\necho \"\u2705 Sitemap updated at {$domain}\/sitemap.xml\";\n?&gt;\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 Anwendung<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Laden Sie die Datei generate_sitemap.php nach public_html hoch.<\/li>\n\n\n\n<li>Rufen Sie die Datei im Browser auf:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-orange-background-color has-text-color has-background has-link-color wp-elements-ec72b115d2d962a048550e6f74b47b85\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>https:&#47;&#47;yourdomain.com\/generate_sitemap.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2192 Die sitemap.xml wird jedes Mal neu generiert (oder aktualisiert).<\/li>\n\n\n\n<li>Wenn Sie eine neue .php-Datei hinzuf\u00fcgen \u2192 f\u00fchren Sie diese Datei einfach erneut aus und die Sitemap wird aktualisiert.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39Machen Sie es wirklich automatisch (richten Sie einen Cron-Job ein, Sie m\u00fcssen ihn nicht selbst dr\u00fccken)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sie k\u00f6nnen beispielsweise den Cron-Job des Hostings verwenden, um generate_sitemap.php t\u00e4glich\/w\u00f6chentlich auszuf\u00fchren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Im Hosting hPanel:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Gehe zu <strong>Erweitert \u2192 Cron-Jobs<\/strong><\/li>\n\n\n\n<li>F\u00fcgen Sie einen Cron-Job hinzu, beispielsweise: <code>php \/home\/Benutzername\/public_html\/generate_sitemap.php<\/code> <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-primary-color has-text-color has-background has-link-color wp-elements-9fba2ebe1fe4129b94a707cbf2e9fc67\" style=\"background-color:#c8e5ea\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>php \/home\/username\/public_html\/generate_sitemap.php<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stellen Sie dann die Zeit ein auf <strong>Einmal t\u00e4glich<\/strong><\/li>\n<\/ul>\n\n<\/div>\n\t\t<\/div>\n\n<div class=\"gc-box notice_type icon_type\" style=\"text-align:left;border-radius:20px;box-shadow: 0 10px 10px #00000007\">\n\t\t\t<div class=\"gc-box-icon\"><svg x=\"0px\" y=\"0px\" viewbox=\"0 0 486.463 486.463\" > <g> <g> <path d=\"M243.225,333.382c-13.6,0-25,11.4-25,25s11.4,25,25,25c13.1,0,25-11.4,24.4-24.4 C268.225,344.682,256.925,333.382,243.225,333.382z\"\/> <path d=\"M474.625,421.982c15.7-27.1,15.8-59.4,0.2-86.4l-156.6-271.2c-15.5-27.3-43.5-43.5-74.9-43.5s-59.4,16.3-74.9,43.4 l-156.8,271.5c-15.6,27.3-15.5,59.8,0.3,86.9c15.6,26.8,43.5,42.9,74.7,42.9h312.8 C430.725,465.582,458.825,449.282,474.625,421.982z M440.625,402.382c-8.7,15-24.1,23.9-41.3,23.9h-312.8 c-17,0-32.3-8.7-40.8-23.4c-8.6-14.9-8.7-32.7-0.1-47.7l156.8-271.4c8.5-14.9,23.7-23.7,40.9-23.7c17.1,0,32.4,8.9,40.9,23.8 l156.7,271.4C449.325,369.882,449.225,387.482,440.625,402.382z\"\/> <path d=\"M237.025,157.882c-11.9,3.4-19.3,14.2-19.3,27.3c0.6,7.9,1.1,15.9,1.7,23.8c1.7,30.1,3.4,59.6,5.1,89.7 c0.6,10.2,8.5,17.6,18.7,17.6c10.2,0,18.2-7.9,18.7-18.2c0-6.2,0-11.9,0.6-18.2c1.1-19.3,2.3-38.6,3.4-57.9 c0.6-12.5,1.7-25,2.3-37.5c0-4.5-0.6-8.5-2.3-12.5C260.825,160.782,248.925,155.082,237.025,157.882z\"\/> <\/g> <\/g> <\/svg><\/div>\n\t\t\t\n\t\t\t<div class=\"gc-box-text\">\n\n<p class=\"wp-block-paragraph\">Es wird empfohlen, Sitemaps mithilfe einer Sitemap-Indexdatei zu verwalten. \u00dcberschreitet eine Sitemap die Gr\u00f6\u00dfenbeschr\u00e4nkung, empfiehlt es sich, sie in mehrere Dateien aufzuteilen und mithilfe der Indexdatei bis zu 500 Dateien pro Site gleichzeitig in der Search Console einzureichen. Das XML-Format der Indexdatei \u00e4hnelt dem einer normalen Sitemap und muss sich im selben Verzeichnis oder tiefer befinden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Weitere Informationen <a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/sitemaps\/large-sitemaps\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/developers.google.com<\/a><\/p>\n\n<\/div>\n\t\t<\/div>\n\n<style scoped>.gc-accordion{margin-bottom:25px}.gc-accordion .gc-accordion-item{margin:10px 0 0}.gc-accordion .gc-accordion-item.gcclose .gc-accordion-item__content{display:none}.gc-accordion .gc-accordion-item.gcopen .gc-accordion-item__title .gciconafter{transform:rotate(0)}.gc-accordion .gc-accordion-item:first-of-type{margin-top:0}.gc-accordion .gc-accordion-item__heading{outline:0;text-decoration:none;font-weight:400 !important;font-size:15px !important;line-height:21px !important;margin:0 !important;padding:15px !important;}.gc-accordion .gc-accordion-item__title{z-index:1;position:relative;display:block;margin:0;background:none #f9f9f9;border:1px solid #ddd;cursor:pointer;transition:all .3s ease-in-out}.gc-accordion .gc-accordion-item__title span.iconfortoggle{display:block;position:absolute;height:14px;width:14px;right:20px;top:18px}.gc-accordion .gc-accordion-item__title span.iconfortoggle .gciconbefore{content:\"\";width:14px;height:3px;border-radius:2px;background-color:#111;position:absolute;top:6px}.gc-accordion .gc-accordion-item__title span.iconfortoggle .gciconafter{content:\"\";width:14px;height:3px;border-radius:2px;background-color:#111;position:absolute;top:6px;transform:rotate(90deg);transition:all .3s ease-in-out}.gc-accordion .gc-accordion-item__title:hover{background:none #eee}.gc-accordion .gc-accordion-item__content{z-index:0;position:relative;padding:15px;border:1px solid #ddd;border-top:none;background:#fff}.gc-accordion .gc-accordion-item__content.stuckMoveDownOpacity{-webkit-animation:stuckMoveDownOpacity .6s;animation:stuckMoveDownOpacity .6s}.gc-accordion .gc-accordion-item__text{font-size:16px;font-weight:400;line-height:1.75}@keyframes stuckMoveDownOpacity{0%{transform:translateY(-15px);opacity:0}100%{transform:translateY(0);opacity:1}}<\/style><div class=\"gc-accordion\" itemscope=\"\" itemtype=\"https:\/\/schema.org\/FAQPage\"><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">Was ist Sitemap.xml?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Eine XML-Datei, die Google und Suchmaschinen mitteilt, welche Seiten enthalten sind, zusammen mit Ranking-Informationen wie dem Datum der letzten \u00c4nderung (lastmod), der \u00c4nderungsh\u00e4ufigkeit (changefreq) und der Priorit\u00e4t (priority).<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">Ist eine Sitemap.xml erforderlich?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Dies ist nicht erforderlich, hilft Suchmaschinen jedoch dabei, Ihre Seiten schneller zu indizieren, insbesondere bei gr\u00f6\u00dferen Websites oder Websites, denen h\u00e4ufig neue Seiten hinzugef\u00fcgt werden.<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">Wie unterscheidet sich Sitemap.xml von robots.txt?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">robots.txt \u2192 teilt Suchmaschinen mit, auf welche Seiten der Zugriff blockiert werden soll; sitemap.xml \u2192 teilt Suchmaschinen mit, welche Seiten eingeschlossen sind und indexiert werden sollen.<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">K\u00f6nnen PHP\/HTML-Websites sitemap.xml verwenden?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Sicher! Sitemap.xml ist es egal, ob es sich bei der Datei um PHP, HTML oder eine dynamische URL handelt. Es zeigt Ihnen lediglich die URL der Webseite an.<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">Wie oft sollte ich meine sitemap.xml aktualisieren?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Wenn h\u00e4ufig neue Seiten hinzugef\u00fcgt werden \u2192 sollten Sie diese sofort aktualisieren * Wenn die Website stabil ist \u2192 aktualisieren Sie sie, wenn es \u00c4nderungen gibt<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">Ist sitemap.xml zu gro\u00df?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Maximale XML-Dateigr\u00f6\u00dfe = 50 MB, maximal 50.000 URLs pro Datei. Wenn mehr als das \u2192 in mehrere Dateien aufteilen und einen Sitemap-Index erstellen.<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">K\u00f6nnen dynamische URLs (wie Abfragezeichenfolgen) in Sitemaps aufgenommen werden?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Das ist m\u00f6glich, Sie sollten jedoch URLs verwenden, die Google tats\u00e4chlich indizieren kann, und URLs vermeiden, die doppelte Inhalte erzeugen.<\/div><\/div><\/div><div class=\"gc-accordion-item gcopen\" itemscope=\"\" itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\"><div class=\"gc-accordion-item__title\" style=\"background-color:#c6e3f7;border-color:#c6e3f7;\"><h3 class=\"gc-accordion-item__heading\" itemprop=\"name\" style=\"\">Wie erstelle ich automatisch eine Sitemap.xml?<\/h3><span class=\"iconfortoggle\"><span class=\"gciconbefore\" style=\"\"><\/span><span class=\"gciconafter\" style=\"\"><\/span><\/span><\/div><div class=\"gc-accordion-item__content\" style=\"\" itemscope=\"\" itemprop=\"acceptedAnswer\" itemtype=\"https:\/\/schema.org\/Answer\"><div class=\"gc-accordion-item__text\" itemprop=\"text\">Verwenden Sie ein PHP-Skript (geeignet f\u00fcr Shared Hosting). Verwenden Sie Python\/externes Skript und laden Sie es hoch. Verwenden Sie ein Plugin\/CMS, z. B. WordPress, das \u00fcber einen bereitgestellten Generator verf\u00fcgt.<\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"Erstellen Sie Schritt f\u00fcr Schritt eine sitemap.xml-Datei mit Python-Code, um Suchmaschinen dabei zu helfen, unsere Webseiten zu erkennen. Es gibt ein Beispiel f\u00fcr eine statische Website, die HTML- und PHP-Dateien verwendet, sowie Anweisungen zur Verwendung und zum Senden an Google und Bing \u00fcber die Search Console oder eine Ping-URL.","protected":false},"author":1,"featured_media":2746,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[23,28],"tags":[],"class_list":["post-2699","post","type-post","status-publish","format-standard","has-post-thumbnail","category-website-creation","category-html-css-javascript","cs-entry"],"_links":{"self":[{"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/posts\/2699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/comments?post=2699"}],"version-history":[{"count":36,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/posts\/2699\/revisions"}],"predecessor-version":[{"id":2741,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/posts\/2699\/revisions\/2741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/media\/2746"}],"wp:attachment":[{"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/media?parent=2699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/categories?post=2699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siammakemoney.com\/de\/wp-json\/wp\/v2\/tags?post=2699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}