亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        dedecms根目錄生成google站點(diǎn)地圖

        字號(hào):


            用織夢(mèng)cms搭建資訊網(wǎng)站大學(xué)生面試網(wǎng)開始琢磨使用dedecms,在系統(tǒng)后臺(tái)給網(wǎng)站生成sitemap站點(diǎn)地圖時(shí),發(fā)現(xiàn)織夢(mèng)cms自帶生成的網(wǎng)站地圖不給力,貌似給google提交也不能通過,然后只能在網(wǎng)上找教程解決dedecms sitemap的問題,最終成功實(shí)現(xiàn)dedecms google sitemap.xml文件。
            將以下代碼中的“www.gmzhen.com”更改為自己的域名,接著用文本工具保存為sitemap.xml,并上傳至網(wǎng)站當(dāng)前模板目錄下(如dedecms默認(rèn)模板側(cè)保存在templete/default下)
            <?xml version=1.0 encoding=utf-8?>
            <urlset xmlns=http://www.google.com/schemas/sitemap/0.84>
            <url>
            <loc>http://www.gmzhen.com/</loc>
            <lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
            [field:pubdate function=strftime('%y-%m-%d',@me)/]
            {/dede:arclist}</lastmod>
            <changefreq>daily</changefreq>
            <priority>1.0</priority>
            </url>
            {dede:channel row='23' type='top'}
            <url>
            <loc>http://www.gmzhen.com[field:typelink /]</loc>
            <changefreq>daily</changefreq>
            <priority>0.8</priority>
            </url>
            {/dede:channel}
            {dede:arclist row=2000 orderby=pubdate}
            <url>
            <loc>http://www.gmzhen.com[field:arcurl/]</loc>
            <lastmod>[field:pubdate function=strftime('%y-%m-%d',@me)/]</lastmod>
            <changefreq>monthly</changefreq>
            </url>
            {/dede:arclist}
            </urlset>
            進(jìn)入網(wǎng)站后臺(tái),在“生成——更新主頁(yè)html”頁(yè)面,對(duì)“選擇主頁(yè)模板”、“主頁(yè)位置”參照下圖設(shè)置,然后更新主頁(yè)
            更新完成后,網(wǎng)站根目錄就會(huì)生成sitemap.xml網(wǎng)站地圖文件。