{"id":123,"date":"2009-02-25T16:55:01","date_gmt":"2009-02-25T14:55:01","guid":{"rendered":"http:\/\/kavdesign.net\/wordpress\/?p=123"},"modified":"2010-04-12T11:59:50","modified_gmt":"2010-04-12T09:59:50","slug":"%d0%ba%d0%b0%d0%ba-%d0%b4%d0%b0-%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bc-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b5%d1%89-google-sitemap-%d0%b7%d0%b0-joomla-%d1%81%d0%b0%d0%b9%d1%82how-to-create-a-w","status":"publish","type":"post","link":"https:\/\/www.kavdesign.net\/blog\/coding\/%d0%ba%d0%b0%d0%ba-%d0%b4%d0%b0-%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bc-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b5%d1%89-google-sitemap-%d0%b7%d0%b0-joomla-%d1%81%d0%b0%d0%b9%d1%82how-to-create-a-w\/","title":{"rendered":"How to create a working google sitemap for a Joomla website"},"content":{"rendered":"<p><!--:bg-->\u041f\u0440\u0430\u0432\u0438\u043b\u043e\u0442\u043e \u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043c\u0435 \u0441\u0430\u0439\u0442\u043c\u0430\u043f \u0432\u044a\u0432 \u0432\u0438\u0434\u0430:<\/p>\n<p><!--:--><!--:en-->The rule is easy. We have to create a sitemap of type:<\/p>\n<p><!--:--><!--more--><!--:bg--><\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;<a href=\"#urlsetdef\">urlset<\/a> xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;\r\n\u00a0\u00a0\u00a0&lt;<a href=\"#urldef\">url<\/a>&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"#locdef\">loc<\/a>&gt;http:\/\/www.example.com\/&lt;\/loc&gt;\r\n\u00a0\u00a0\u00a0<em> &lt;<a href=\"#lastmoddef\">lastmod<\/a>&gt;2005-01-01&lt;\/lastmod&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"#changefreqdef\">changefreq<\/a>&gt;monthly&lt;\/changefreq&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"#prioritydef\">priority<\/a>&gt;0.8&lt;\/priority&gt;<\/em>\r\n\u00a0\u00a0\u00a0&lt;\/url&gt;\u00a0\u00a0\r\n\r\n\u00a0\u00a0\u00a0&lt;<a href=\"#urldef\">url<\/a>&gt;\r\n\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"#locdef\">loc<\/a>&gt;http:\/\/www.example.com\/something&amp;something&lt;\/loc&gt;\r\n\u00a0\u00a0\u00a0 <em>&lt;<a href=\"#lastmoddef\">lastmod<\/a>&gt;2005-01-01&lt;\/lastmod&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"#changefreqdef\">changefreq<\/a>&gt;monthly&lt;\/changefreq&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"#prioritydef\">priority<\/a>&gt;0.8&lt;\/priority&gt;<\/em>\r\n\u00a0\u00a0\u00a0&lt;\/url&gt;\u00a0\u00a0\r\n\r\n&lt;\/urlset&gt;<\/pre>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0435 \u0432 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 &amp;. \u041a\u0430\u043a\u0442\u043e \u0441\u0442\u0435 \u0437\u0430\u043f\u043e\u0437\u043d\u0430\u0442\u0438 \u0432 Joomla \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0438\u0442\u0435 \u043d\u0430\u0439-\u0447\u0435\u0441\u0442\u043e \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u0442 \u0442\u043e\u0437\u0438 \u0441\u0438\u043c\u0432\u043e\u043b. \u0417\u0430 \u0434\u0430 \u0438\u0437\u0431\u0435\u0433\u043c\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0438 \u043f\u0440\u0438 \u0447\u0435\u0442\u0435\u043d\u0435\u0442\u043e \u043d\u0430 XML \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u043d \u0442\u043e\u0437\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u0441 \u043d\u0435\u0433\u043e\u0432\u0438\u044f \u0437\u0430\u043c\u0435\u0441\u0442\u0438\u0442\u0435, \u0442.\u0435 &amp;amp;<\/p>\n<p>\u0415\u0442\u043e \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0437\u0430 \u0432\u0441\u0438\u0447\u043a\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u043d\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0438 \u0432 XML:<\/p>\n<table style=\"height: 150px;\" border=\"1\" width=\"379\">\n<tbody>\n<tr>\n<th>Character Name<\/th>\n<th>Entity Reference<\/th>\n<th>Character Reference<\/th>\n<th>Numeric Reference<\/th>\n<\/tr>\n<tr>\n<td>Ampersand<\/td>\n<td>&amp;amp;<\/td>\n<td>&amp;<\/td>\n<td>&amp;#38;#38;<\/td>\n<\/tr>\n<tr>\n<td>Left angle bracket<\/td>\n<td>&amp;lt;<\/td>\n<td>&lt;<\/td>\n<td>&amp;#38;#60;<\/td>\n<\/tr>\n<tr>\n<td>Right angle bracket<\/td>\n<td>&amp;gt;<\/td>\n<td>&gt;<\/td>\n<td>&amp;#62;<\/td>\n<\/tr>\n<tr>\n<td>Straight quotation mark<\/td>\n<td>&amp;quot;<\/td>\n<td>&#8220;<\/td>\n<td>&amp;#39;<\/td>\n<\/tr>\n<tr>\n<td>Apostrophe<\/td>\n<td>&amp;apos;<\/td>\n<td>&#8216;<\/td>\n<td>&amp;#34;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--:--><!--:en--><\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#urlsetdef\">urlset<\/a> xmlns=\"http:\/\/www.sitemaps.org\/schemas\/sitemap\/0.9\"&gt;\r\n\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#urldef\">url<\/a>&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#locdef\">loc<\/a>&gt;http:\/\/www.example.com\/&lt;\/loc&gt;\r\n\u00a0\u00a0\u00a0 <em>&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#lastmoddef\">lastmod<\/a>&gt;2005-01-01&lt;\/lastmod&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#changefreqdef\">changefreq<\/a>&gt;monthly&lt;\/changefreq&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#prioritydef\">priority<\/a>&gt;0.8&lt;\/priority&gt;<\/em>\r\n\u00a0\u00a0\u00a0&lt;\/url&gt;\r\n\u00a0\u00a0 &lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#urldef\">url<\/a>&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#locdef\">loc<\/a>&gt;http:\/\/www.example.com\/stranica&amp;ne6to_si&lt;\/loc&gt;\r\n\u00a0\u00a0\u00a0 <em>&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#lastmoddef\">lastmod<\/a>&gt;2005-01-01&lt;\/lastmod&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#changefreqdef\">changefreq<\/a>&gt;monthly&lt;\/changefreq&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;<a href=\"https:\/\/www.google.com\/webmasters\/tools\/docs\/en\/protocol.html#prioritydef\">priority<\/a>&gt;0.8&lt;\/priority&gt;<\/em>\r\n\u00a0\u00a0\u00a0&lt;\/url&gt;\r\n&lt;\/urlset&gt;<\/pre>\n<p>The problem is in the &amp; symbol. As you know in Joomla most of the pages urls contain this symbol. To avoid this problem with the readability of the XML file we have to substitute this symbol with its XML replacement, e.g. &amp;amp;<\/p>\n<p>Here is a table with all the special charachters in XML:<\/p>\n<table style=\"height: 150px;\" border=\"1\" width=\"379\">\n<tbody>\n<tr>\n<th>Character Name<\/th>\n<th>Entity Reference<\/th>\n<th>Character Reference<\/th>\n<th>Numeric Reference<\/th>\n<\/tr>\n<tr>\n<td>Ampersand<\/td>\n<td>&amp;amp;<\/td>\n<td>&amp;<\/td>\n<td>&amp;#38;#38;<\/td>\n<\/tr>\n<tr>\n<td>Left angle bracket<\/td>\n<td>&amp;lt;<\/td>\n<td>&lt;<\/td>\n<td>&amp;#38;#60;<\/td>\n<\/tr>\n<tr>\n<td>Right angle bracket<\/td>\n<td>&amp;gt;<\/td>\n<td>&gt;<\/td>\n<td>&amp;#62;<\/td>\n<\/tr>\n<tr>\n<td>Straight quotation mark<\/td>\n<td>&amp;quot;<\/td>\n<td>&#8220;<\/td>\n<td>&amp;#39;<\/td>\n<\/tr>\n<tr>\n<td>Apostrophe<\/td>\n<td>&amp;apos;<\/td>\n<td>&#8216;<\/td>\n<td>&amp;#34;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0430\u0432\u0438\u043b\u043e\u0442\u043e \u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0421\u044a\u0437\u0434\u0430\u0432\u0430\u043c\u0435 \u0441\u0430\u0439\u0442\u043c\u0430\u043f \u0432\u044a\u0432 \u0432\u0438\u0434\u0430: The rule is easy. We have to create a sitemap of type:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,29],"tags":[28,27,31,30],"class_list":["post-123","post","type-post","status-publish","format-standard","hentry","category-coding","category-joomla","tag-google-sitemap","tag-sitemal","tag-special-charachters","tag-xml","entry"],"_links":{"self":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":8,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kavdesign.net\/blog\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}