Google Warning - All URL's In Sitemap Have Same Priority

Discussion in 'Google Sitemaps' started by a.ashabi, Dec 3, 2008.

  1. #1
    Hi.I have send my file to google sitemap so many times and still get the error message for the URL priority.
    would u plz check my file and let me know whats wrong with my code.
    please help me...big thanks all of you
    it's very urgent.


    <CFSET URL.RequestTimeout = 9999999999>
    <CFSETTING RequestTimeout = "#URL.RequestTimeout#">

    <CFSCRIPT>
    function urlCleaner (productName) {
    productName = ReplaceNoCase(REReplaceNoCase (productName, "[#chr(34)#'& ()./]", "-", "all"), chr(10) & chr(13), '', 'all');
    productName = ReplaceNoCase(ReplaceNoCase(productName, "--", "-", "all"), "--", "-", "all");
    if (Len(Trim(productName)) AND NOT CompareNoCase(Mid(productName, Len(productName), 1), "-")) {
    productName = Mid(productName, 1, Len(productName)-1);
    }
    return productName;
    }
    </CFSCRIPT>

    <!---<CFSET xmlTimestamp = LSDateFormat(Now(), "yyyy-mm-dd") & "T" & LSTimeFormat(Now(), "HH:mm:ss") & "-08:00">--->
    <CFSET xmlTimestamp = LSDateFormat(Now(), "yyyy-mm-dd")>
    <CFSAVECONTENT variable="xmlDoc"><?xml version="1.0" encoding="UTF-8"?>
    <sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/siteindex.xsd">

    <sitemap>
    <loc>http://www.needbattery.com/sitemap1.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap2.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap3.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap4.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap5.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap6.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap7.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap8.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap9.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap10.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap11.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap12.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.needbattery.com/sitemap13.xml</loc>
    <lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
    </sitemap>
    </sitemapindex>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemapIndex.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <!--- PRODUCT TYPE --->
    <CFQUERY name="getProductTypes" datasource="#datasource#">
    SELECT 'http://www.needbattery.com/' + cat_level1_url + '.html' AS keywordLink
    FROM tbl_cat_level1
    ORDER BY cat_level1_name
    </CFQUERY>

    <!--- MANUFACTURER --->
    <CFQUERY name="getManufacturers" datasource="#datasource#">
    SELECT 'http://www.needbattery.com/' + cat_level2_url + '.html' AS keywordLink
    FROM tbl_cat_level2
    ORDER BY cat_level2_name
    </CFQUERY>

    <!--- PRODUCT - MANUFACTURER --->
    <CFQUERY name="getProductManufacturers" datasource="#datasource#">
    SELECT DISTINCT cat_level2_name + ' ' + cat_level1_name AS keywordValue, 'http://www.needbattery.com/' + cat_level1_url + '/' + cat_level2_url + '.html' AS keywordLink, cat_level1_name, cat_level2_name
    FROM tbl_cat_relation a
    INNER JOIN tbl_cat_level1 b ON a.cat_level1_id = b.cat_level1_id
    INNER JOIN tbl_cat_level2 c ON a.cat_level2_id = c.cat_level2_id
    ORDER BY cat_level2_name, cat_level1_name
    </CFQUERY>

    <!--- GET MODELS --->
    <CFQUERY name="getModels" datasource="#datasource#">
    SELECT top 15000 cat_level2_name + ' ' + IsNull(cat_level3_description + ' ', '') + cat_level3_name + ' ' + cat_level1_name AS keywordValue, 'http://www.needbattery.com/' + cat_level1_url + '/' + cat_level2_url + '_' + cat_level3_url + '.html' AS keywordLink, cat_level1_name, cat_level2_name, cat_level3_name, cat_level3_description
    FROM tbl_configurator a
    INNER JOIN tbl_cat_level1 b ON a.cat_level1_id = b.cat_level1_id
    INNER JOIN tbl_cat_level2 c ON a.cat_level2_id = c.cat_level2_id
    INNER JOIN tbl_cat_level3 d ON a.cat_level3_id = d.cat_level3_id
    ORDER BY cat_level2_name, cat_level3_description, cat_level3_name, cat_level1_name
    </CFQUERY>

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

    <url>
    <loc>http://www.needbattery.com/</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>1.00</priority>
    </url>
    <url>
    <loc>http://www.needbattery.com/RelatedLinks/index.html</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.98</priority>
    </url>
    <CFLOOP query="getProductTypes"><url>
    <loc>#getProductTypes.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.97</priority>
    </url>
    </CFLOOP>
    <CFLOOP query="getManufacturers"><url>
    <loc>#getManufacturers.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.96</priority>
    </url>
    </CFLOOP>
    <CFLOOP query="getProductManufacturers"><url>
    <loc>#getProductManufacturers.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.95</priority>
    </url>
    </CFLOOP>
    <CFLOOP query="getModels"><url>
    <loc>#getModels.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.94</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemap1.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <!--- PRODUCTS --->
    <CFQUERY name="getProducts" datasource="#datasource#" timeout="9999999">
    SELECT DISTINCT cat_level2_name + ' ' + IsNull(cat_level3_description + ' ', '') + cat_level3_name + ' ' + e.product_name + ' ' + e.product_code + cat_level1_name AS keywordValue, 'http://www.needbattery.com/' + cat_level1_url + '/' + cat_level2_url + '_' + cat_level3_url + '_' + e.product_code_url + '_' + dbo.WebStringStripper(e.product_name) + '.html' AS keywordLink, cat_level1_name, cat_level2_name, cat_level3_name, cat_level3_description
    FROM tbl_configurator a
    INNER JOIN tbl_cat_level1 b ON a.cat_level1_id = b.cat_level1_id
    INNER JOIN tbl_cat_level2 c ON a.cat_level2_id = c.cat_level2_id
    INNER JOIN tbl_cat_level3 d ON a.cat_level3_id = d.cat_level3_id
    INNER JOIN tbl_product e ON a.product_id = e.product_id
    ORDER BY cat_level2_name, cat_level3_description, cat_level3_name, cat_level1_name
    </CFQUERY>

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="1" to="15000" index="x"><url>
    <loc>#getProducts.keywordLink[x]#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.89</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemap2.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="15001" to="30000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.88</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemap3.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="30001" to="45000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.87</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemap4.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="45001" to="60000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.86</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemap5.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="60001" to="75000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.85</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>
    <cffile action="write" file="E:\www\NeedBattery\sitemap6.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="75001" to="90000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.84</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap7.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="90001" to="105000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.83</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap8.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="105001" to="120000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.82</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap9.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="120001" to="135000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.81</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap10.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="135001" to="150000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.80</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap11.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="150001" to="175000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.79</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap12.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">

    <CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
    http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
    <CFLOOP from="175001" to="190000" index="x"><url>
    <loc>#getProducts.keywordLink#</loc>
    <lastmod>#xmlTimestamp#</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.78</priority>
    </url>
    </CFLOOP>
    </urlset></CFOUTPUT>
    </CFSAVECONTENT>

    <cffile action="write" file="E:\www\NeedBattery\sitemap13.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
     
    a.ashabi, Dec 3, 2008 IP
  2. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #2
    Well, strictly speaking, values such as <priority>0.98</priority> and <priority>0.97</priority> are not valid in XML sitemaps protocol. You may want to check this xml sitemap article about priorities.

    If you still can't get it working, you may try to remove priorities entirely from your XML sitemaps.
     
    websitetools, Dec 3, 2008 IP