首先,找到zb_system/defend/目錄下的error.html文件,error.html就是默認的錯誤提示頁面,下面按照自己的要求修改error.html文件即可,具體怎么修改視個人情況而定,源代碼,僅供大家參考。
創新互聯是一家專業提供大安市企業網站建設,專注與成都做網站、成都網站設計、H5高端網站建設、小程序制作等業務。10年已為大安市眾多企業、政府機構等服務。創新互聯專業的建站公司優惠進行中。
!DOCTYPE HTML
html
head
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
meta http-equiv="X-UA-Compatible" content="IE=EDGE" /
meta http-equiv="refresh" content="2; url=" /
title錯誤提示頁面 - 葉德華的博客/title
/head
body
br /br /
centerstrongspan style="font-size:24px;"訪問出錯,將在2秒后返回博客首頁。/span/strong/center
/body
/html
header("Content-type: text/xml");header('HTTP/1.1 200 OK');require'zb_system/function/c_system_base.php';global$zbp;$zbp-host ='http://'. $_SERVER['SERVER_NAME'] .'/';$str ='?xml version="1.0" encoding="UTF-8"?';$str .='urlset xmlns="" xmlns:mobile=""';if(!isset($_GET['index'])) {? ? $str .='url';? ? $str .='loc'. $zbp-host .'/loc';? ? $str .='mobile:mobile type="pc,mobile"/';? ? $str .='lastmod'. date('Y-m-d', time()) .'/lastmod';? ? $str .='changefreqdaily/changefreq';? ? $str .='priority1.0/priority';? ? $str .='/url';? ? $allCats = $zbp-GetCategoryList();foreach($allCatsas$cat) {? ? ? ? $str .='url';? ? ? ? $str .='loc'. $cat-Url .'/loc';//? ? ? ? $str .= 'mobile:mobile type="pc,mobile"/';$str .='lastmod'. date('Y-m-d', time()) .'/lastmod';? ? ? ? $str .='changefreqdaily/changefreq';? ? ? ? $str .='priority0.8/priority';? ? ? ? $str .='/url';? ? }? ? $allTags = $zbp-GetTagList();foreach($allTagsas$tag) {? ? ? ? $str .='url';? ? ? ? $str .='loc'. $tag-Url .'/loc';//? ? ? ? $str .= 'mobile:mobile type="pc,mobile"/';//? ? ? ? $str .= 'lastmod' . date('Y-m-d', time()) . '/lastmod';$str .='changefreqweekly/changefreq';? ? ? ? $str .='priority0.6/priority';? ? ? ? $str .='/url';? ? }? ? $allAuthors = $zbp-GetMemberList('*',array(array('','mem_ID',1),array('','mem_Articles',0)),array('mem_Level'='ASC'),2000,null);foreach($allAuthorsas$member) {? ? ? ? $str .='url';? ? ? ? $str .='loc'. $member-Url .'/loc';//? ? ? ? $str .= 'mobile:mobile type="pc,mobile"/';//? ? ? ? $str .= 'lastmod' . date('Y-m-d', time()) . '/lastmod';$str .='changefreqweekly/changefreq';? ? ? ? $str .='priority0.6/priority';? ? ? ? $str .='/url';? ? }}else{//文章$index = $_GET['index'];? ? $db = $zbp-db-sql-get();? ? $sql = $db-select($zbp-table['Post'])-where(array('=','log_Status','0'))-orderBy(array('log_PostTime'='DESC'))-limit(array(1000* $index,1000))-sql;? ? $array = $zbp-GetListType('Post', $sql);foreach($arrayas$post) {? ? ? ? $str .='url';? ? ? ? $str .='loc'. $post-Url .'/loc';//? ? ? ? $str .= 'mobile:mobile type="pc,mobile"/';$str .='lastmod'. $post-Time('Y-m-d') .'/lastmod';? ? ? ? $str .='changefreqmonthly/changefreq';? ? ? ? $str .='priority0.4/priority';? ? ? ? $str .='/url';? ? }}$str .='/urlset';echo$str;unset($str);?
sitemap,zlbog php 版本寫法, 美食匯 網站地圖 ,zblog版本,其他框架,請自行獲取文章函數
nginx 重定向配置
rewrite ^/sitemap\.xml$/sitemap.phplast;
使用插件WordPress轉zblog
zblog里安裝插件Wpimport。
登陸你的Wordpress后臺,選擇【工具】中的【導出】之后選擇——所有文件,之后導出了后綴為xml的wordpress的數據文件。
登陸你的zblog后臺,選擇【插件管理】中的【上傳插件zba文件】之后選擇對用Wpimport,zba文件安裝,并激活即可。
依然是zblog后臺,選擇【插件管理】中的【Wordpress數據導入程序】——【管理】,之后上傳剛從wordpress站點上下載的xml后綴的文件。
ok,所有文章重建,大功告成了!
累
標題名稱:zblog-zba打包 zblog17
URL地址:http://vcdvsql.cn/article38/ddijppp.html
成都網站建設公司_創新互聯,為您提供網站收錄、網站策劃、微信公眾號、商城網站、企業網站制作、網站導航
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯