• <s id="1jjov"><bdo id="1jjov"></bdo></s>
    <s id="1jjov"></s>

    
    

      <sup id="1jjov"></sup>
        1. <s id="1jjov"><nobr id="1jjov"><ins id="1jjov"></ins></nobr></s>
           
          售前咨詢QQ:QQ412395521
          業(yè)務(wù)合作QQ:QQ627174919
          位置:首頁 > 知新 > 帝國CMS > 模板制作

          帝國系統(tǒng)完整制作GOOGLE SITEMAP的方法(修改版)

          時間:2008-04-01 08:53:11  來源:帝國論壇  作者:24mp3
          原稿:xhhnet 技術(shù)支持:wm_chief,hicode 整理:24mp3

          GOOGLE SITEMAP 的制作xhhnet已給出詳細(xì)方法(http://bbs.phome.net/ShowThread/?threadid=28212&forumid=13),不過我發(fā)現(xiàn)其中并不包括重要的欄目地址,而且有個小地方未做說明,所以有不少人照做后發(fā)現(xiàn)提交后GOOGLE頁面顯示SITEMAP出錯。經(jīng)過詢問WC和hicode,總結(jié)方法如下,思路還是原來的,但調(diào)用的標(biāo)簽不一樣。生成的sitemap更合理。并且已全部提交成功。

          本方法利用欄目分別創(chuàng)建不同的sitemap,達(dá)到SITEMAP分頁的效果,制作出來的SITEMAP完全符合https://www.google.com/webmasters/tools/docs/zh_CN/protocol.html的要求.

          新增:
          欄目地址
          SITEMAP錯誤日期無效原因

          一、系統(tǒng)參數(shù)設(shè)置 -> 信息設(shè)置

          模板是否支持程序代碼:  是
          (一定要先做好這一步,才進(jìn)行下一步的工作,否則提交后出錯。)

          二、打開后臺模板管理 -> 管理標(biāo)簽?zāi)0?-> 增加標(biāo)簽?zāi)0?

          1、自定義google地圖標(biāo)簽

          注意:時間顯示格式選擇:Y-m-d
          (如果是默認(rèn)的Y-m-d H:i:s,則提交后會顯示Sitemap 錯誤和警告)


          頁面模板內(nèi)容:
          <url><loc>http://www.yoursite.com[!--the.classurl--]</loc></url>
          [!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]

          列表內(nèi)容模板:
          <url><loc>http://www.yoursite.com[!--titleurl--]</loc>
              <lastmod>[!--newstime--]</lastmod>
             </url>

          2、自定義google地圖索引標(biāo)簽

          注意:時間顯示格式選擇:Y-m-d
          (如果是默認(rèn)的Y-m-d H:i:s,則提交后會顯示Sitemap 錯誤和警告)

          頁面模板內(nèi)容:
          [!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]

          列表內(nèi)容模板:
          [!--newstime--]

          三,開始增加地圖

          建立網(wǎng)站地圖涉及到你的網(wǎng)站架構(gòu)問題,基本原理是有多少個非終極欄目就可以添加多少個地圖,如sitemap1,sitemap2.....這樣的地圖包括了終極欄目的地址和具體文章地址,不過并不包括非終極欄目本身的地址,可以先用一個sitemap999包括這些非終極欄目的地址,然后再一個個添加非終極欄目的sitemap。

          模板管理->管理自定義頁面 -> 增加自定義頁面:

          (以下先用一個sitemap999包括這些非終極欄目的地址)
          1、頁面名稱:網(wǎng)站大類地圖

          文件名:   ../../sitemap999.xml

          頁面內(nèi)容:
          <?='<?xml version="1.0" encoding="UTF-8"?>'?>
          <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
            <url><loc>http://www.yoursite.com</loc> </url>
            [listsonclass]'0',0,0,0,3,地圖標(biāo)簽ID,0,0[/listsonclass]
          </urlset>

          (以下添加非終極欄目的sitemap)
          2、頁面名稱:網(wǎng)站地圖1

          文件名:   ../../sitemap1.xml

          頁面內(nèi)容:
          <?='<?xml version="1.0" encoding="UTF-8"?>'?>
          <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
            <url><loc>http://www.yoursite.com</loc> </url>
            [listsonclass]欄目ID,3000,0,0,0,地圖標(biāo)簽ID,0,0[/listsonclass]
          </urlset>

          3、頁面名稱:網(wǎng)站地圖2

          文件名:   ../../sitemap2.xml

          頁面內(nèi)容:
          <?='<?xml version="1.0" encoding="UTF-8"?>'?>
          <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
            <url><loc>http://www.yoursite.com</loc> </url>
            [listsonclass]欄目ID,3000,0,0,0,地圖標(biāo)簽ID,0,0[/listsonclass]
          </urlset>

          ......

          網(wǎng)站地圖3網(wǎng)站地圖4網(wǎng)站地圖5網(wǎng)站地圖6....除文件名外和欄目ID改變外其他同樣.

          4.制作地圖索引頁

          頁面名稱:網(wǎng)站地圖索引頁

          文件名:   ../../sitemap_index.xml

          頁面內(nèi)容:
          <?='<?xml version="1.0" encoding="UTF-8"?>'?>
             <sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">
             <sitemap>
                <loc>http://www.yoursite.com/sitemap999.xml</loc>
                <lastmod>[ecmsinfo]'0',1,0,0,3,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
             <sitemap>
                <loc>http://www.yoursite.com/sitemap1.xml</loc>
                <lastmod>[ecmsinfo]欄目ID,1,0,0,0,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
             <sitemap>
                <loc>http://www.yoursite.com/sitemap2.xml</loc>
                <lastmod>[ecmsinfo]欄目ID,1,0,0,0,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
          <sitemap>
                <loc>http://www.yoursite.com/sitemap3.xml</loc>
                <lastmod>[ecmsinfo]欄目ID,1,0,0,0,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
          <sitemap>
                <loc>http://www.yoursite.com/sitemap4.xml</loc>
                <lastmod>[ecmsinfo]欄目ID,1,0,0,0,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
          <sitemap>
                <loc>http://www.yoursite.com/sitemap5.xml</loc>
                <lastmod>[ecmsinfo]欄目ID,1,0,0,0,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
          <sitemap>
                <loc>http://www.yoursite.com/sitemap6.xml</loc>
                <lastmod>[ecmsinfo]欄目ID,1,0,0,0,地圖索引標(biāo)簽ID,0[/ecmsinfo]</lastmod>
             </sitemap>
             </sitemapindex>


          四、后臺 -> 數(shù)據(jù)更新
          刷新所有自定義頁面。

          五、到GOOGLE管理員頁面登錄提交sitemap_index.xml及所有sitemap.


          說明:sitemap999.xml是網(wǎng)站大類欄目地址的地圖(不包括具體文章地址),其他sitemap1,sitemap2.....是各個非終極欄目的地圖(包括下面終極欄目的地址和具體文章地址),sitemap_index是所有地圖索引。這樣就基本上一網(wǎng)打盡了帝國系統(tǒng)的所有網(wǎng)址了。

          還有sitemap文件不能過大,如果再加上服務(wù)器線路不好的情況下,也容易造成GOOGLE收錄出錯,這時請適當(dāng)減小網(wǎng)站地圖中[listsonclass]欄目ID,3000,...[/listsonclass]中的“3000”數(shù)目。這個參數(shù)并不是控制sitemap文件的收錄數(shù)量,而是控制每個終極欄目加入的文章數(shù)量。

          個人經(jīng)驗,一個單個的sitemap控制在3MB左右,GOOGLE是可以接受的。

          提交成功后,以后網(wǎng)站有更新時,在帝國后臺刷新一下相應(yīng)的自定義sitemap頁面即可。

          上傳以下圖片:

           
          旗下其它產(chǎn)品:【帝國備份王】    【EBMA系統(tǒng)】    【帝國下載系統(tǒng)
          Powered by EmpireCMS
          版權(quán)所有 ©2002-2024 EmpireSoft Inc.
        2. <s id="1jjov"><bdo id="1jjov"></bdo></s>
          <s id="1jjov"></s>

          
          

            <sup id="1jjov"></sup>
              1. <s id="1jjov"><nobr id="1jjov"><ins id="1jjov"></ins></nobr></s>
                高清无码视频在线免费看 | 欧美少妇一区二区 | 午夜成人无码免费视频 | 国产一级AV片 | 超碰色| 中文字幕日韩欧美在线 | 强伦人妻一区二区三区 | 亚洲黄色电影院 | 在线播放 神尾舞视频 | 国产综合日本欧美 |