<?php define('IN_CODE',true); include_once("config.php"); header("Content-Type: text/xml; charset=utf-8"); $result = mysql_query('SELECT idt,date_format(datum,"%Y-%m-%d") as datum FROM rs_tovar WHERE visible=1'); $header = '<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'; echo $header; while ($row = mysql_fetch_assoc($result)) { echo ' <url><loc>'.$GLOBALS["baseadr"].'d'.$row['idt'].'</loc><lastmod>'.$row['datum'].'</lastmod><changefreq>weekly</changefreq></url>'; } echo '</urlset>'; ?>
<?php define('IN_CODE',true); include_once("config.php"); header("Content-Type: text/xml; charset=utf-8"); $result = mysql_query('SELECT idc,link,date_format(datum,"%Y-%m-%d") as datum FROM rs_clanky WHERE visible=1'); $header = '<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'; echo $header; while ($row = mysql_fetch_assoc($result)) { echo ' <url><loc>'.$GLOBALS["baseadr"].'view.php?cisloclanku='.$row['link'].'</loc><lastmod>'.$row['datum'].'</lastmod><changefreq>weekly</changefreq></url>'; } echo '</urlset>'; ?>
<?php define('IN_CODE',true); include_once("config.php"); header("Content-Type: text/xml; charset=utf-8"); $result = mysql_query('SELECT link,seo_link,date_format(datum,"%Y-%m-%d") as datum FROM rs_clanky WHERE visible=1'); $header = '<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'; echo $header; while ($row = mysql_fetch_assoc($result)) { echo ' <url><loc>'.$GLOBALS["baseadr"].'view.php?nazevclanku='.$row["seo_link"].'&cisloclanku='.$row["link"].'</loc><lastmod>'.$row['datum'].'</lastmod><changefreq>weekly</changefreq></url>'; } echo '</urlset>'; ?>
&, ale netuším, proč těch předchozích 940 projde v pořádku :-(
Line: 907 Parsing error We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Line: 907 Invalid URL This is not a valid URL. Please correct it and resubmit.
<?php define('IN_CODE',true); include_once("config.php"); header("Content-Type: text/xml; charset=UTF-8"); $result = mysql_query('SELECT link,seo_link,date_format(datum,"%Y-%m-%d") as datum FROM rs_clanky WHERE visible=1'); $header = '<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'; echo $header; while ($row = mysql_fetch_assoc($result)) { echo ' <url><loc>'.$GLOBALS["baseadr"].'view.php?nazevclanku='.$row["seo_link"].'&cisloclanku='.$row["link"].'</loc><lastmod>'.$row['datum'].'</lastmod><changefreq>weekly</changefreq></url>'; } echo '</urlset>'; ?>
Tento XML soubor nemá připojeny žádné informace o vzhledu prvků. Strom XML dokumentu je zobrazen níže. -<urlset> -<url> -<loc> [http://infoportal.oslavany-cz.eu/view.php?nazevclanku=vychazka-na-chvojnici&cisloclanku=2007030025] </loc> <lastmod>2007-03-27</lastmod> <changefreq>weekly</changefreq> </url>
https://www.google.com/webmasters/tools/siteoverview