scott36 Posted October 7, 2008 Posted October 7, 2008 Hi there, I am triying since hours to generate a simple sitemap for my website, unfortunately that was not successfull. I am always getting errors that the XML coding is not right or that there are no style informations linked to the document: http://www.bali-zauber.com/sitemap.xml Does anybody know more than me how to fix this? Thanks, Scott
arietis Posted October 7, 2008 Posted October 7, 2008 your site map looks like this: <urlset> <main> <loc>http://www.bali-zauber.com/</loc> </main> ... </urlset> it should look more like this: <?xml version="1.0" encoding="UTF-8"?> <urlset> <url> <loc>http://yourdomain.com/</loc> <lastmod>2008-10-07</lastmod> <changefreq>weekly</changefreq> <priority>0.9</priority> </url> ... repeat the <url> block as necessary ... </urlset> do not change the text between the angle brackets. in order for the bots to interpret the xml, they are looking for a <loc> tag. if you change it to <main> or <kategorien> they don't know what that means and they won't be able to use your site map. you don't need to tell it what type of page it is (categories vs. product information). the bots figure out what's on the page by scanning it. as far as i know, the allowed values for <changefreq> are daily, weekly, monthly and yearly. but i may be wrong. <priority> should be a number between 0 and 1, 1 being higher priority. use this to describe the relative importance of the individual pages. you also probably do not need to list each individual product or category. i've set up a site before that just points to /catalog/index.php. from there, the bots see the all other pages and will scan them...even if they're not listed in the sitemap. but if you want to give the importance of pages (product_info.php being higher importance that contact_us.php for example) then listing the different pages may be important to you. for more information: https://www.google.com/webmasters/tools/doc...n/protocol.html
scott36 Posted October 8, 2008 Author Posted October 8, 2008 Thank you for this! Is that right now? > http://bali-zauber.com/sitemap.xml When I am trying to validate the document through W3C is shows the following warning: "No DOCTYPE found! Checking XML syntax only." Can I ignore this?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.