dede文档HTML默认保存路径把a去掉了,改变路径缩短了url。

dede文档HTML默认保存路径把a去掉了,改变路径缩短了url。,第1张

织梦CMS去除前台底部的版权信息首先要准备:电脑一台、网站后台密码,和浏览器;

具体步凑如下:

1、打开电脑,登录网站后台,点击“模板”--->进入“默认模板管理”;

2、找到底部模板“footerhtm”文件,点击后面的“修改”;

3、在<div class="footer_body"></div>的文件进行修改;

4、修改完后保存,进行更新;

注意;这能修改<div class="footer_body"></div>中间的东西,更改完后一定要更新。

  

建立txt文档,命名为,moduleurllisttxt,txt文档内容为下面的数据,上传到/data/module/目录下面刷新就行了

a:15:{s:32:"0a7bea5dbe571d35def883cbec796437";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:9:"2009-7-01";s:4:"team";s:8:"织梦官方";s:4:"name";s:10:"留言簿模块";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"0a7bea5dbe571d35def883cbec796437";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:9:"16292 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"0cce60bc0238aa03804682c801584991";a:14:{s:3:"url";s:15:"wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-19";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"百度新闻";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"0cce60bc0238aa03804682c801584991";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"1195 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"1f35620fb42d452fa2bdc1dee1690f92";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-13";s:4:"team";s:8:"织梦官方";s:4:"name";s:10:"文件管理器";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"1f35620fb42d452fa2bdc1dee1690f92";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"5433 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"572606600345b1a4bb8c810bbae434cc";a:14:{s:3:"url";s:15:"wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-19";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"挑错管理";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"572606600345b1a4bb8c810bbae434cc";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"1349 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"59155be87ea60c5c65ec1f7a46a0fc9d";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-12";s:4:"team";s:8:"织梦官方";s:4:"name";s:11:"手机WAP浏览";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"59155be87ea60c5c65ec1f7a46a0fc9d";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"2239 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}s:32:"72ffa6fabe3c236f9238a2b281bc0f93";a:14:{s:3:"url";s:15:"wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-19";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"广告管理";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"72ffa6fabe3c236f9238a2b281bc0f93";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"3201 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"7badb72a3ff79af2a7112beee60cb970";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2009-12-01";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"小说模块";s:8:"indexurl";s:19:"/book/mybooksphp";s:9:"indexname";s:4:"小说";s:4:"hash";s:32:"7badb72a3ff79af2a7112beee60cb970";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"1";s:8:"filesize";s:9:"97347 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}s:32:"867af26e9c1ccf22a1cf67e756cf5acc";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-28";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"黄页模块";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"867af26e9c1ccf22a1cf67e756cf5acc";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"1730 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}s:32:"8964eda9013d1df0afea08ed63243436";a:14:{s:3:"url";s:15:"wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-11-19";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"站内新闻";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"8964eda9013d1df0afea08ed63243436";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"2431 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"8a4773468b800900dcfefbc5988833ed";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"card126@gmailcom";s:4:"time";s:10:"2009-08-10";s:4:"team";s:8:"织梦官方";s:4:"name";s:11:"UCenter模块";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"8a4773468b800900dcfefbc5988833ed";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:9:"21710 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}s:32:"acb8b88eb4a6d4bfc375c18534f9439e";a:14:{s:3:"url";s:15:"wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2009-07-01";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"投票模块";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"acb8b88eb4a6d4bfc375c18534f9439e";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"4119 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"b437d85a7a7bc778c9c79b5ec36ab9aa";a:14:{s:3:"url";s:15:"wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2008-07-01";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"友情链接";s:8:"indexurl";s:0:"";s:9:"indexname";s:0:"";s:4:"hash";s:32:"b437d85a7a7bc778c9c79b5ec36ab9aa";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"0";s:8:"filesize";s:8:"4240 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"plus";}s:32:"be722dbfa3cb3cb5628aab2d767ff62e";a:14:{s:3:"url";s:26:"http://servicededecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2011-02-08";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"问答模块";s:8:"indexurl";s:17:"/ask/ctmyask";s:9:"indexname";s:4:"问答";s:4:"hash";s:32:"be722dbfa3cb3cb5628aab2d767ff62e";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"1";s:8:"filesize";s:10:"149347 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}s:32:"c10bb6ac52082ab3e669b4814b44a6f1";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2010-03-25";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"邮件订阅";s:8:"indexurl";s:18:"/member/mailphp";s:9:"indexname";s:8:"邮件订阅";s:4:"hash";s:32:"c10bb6ac52082ab3e669b4814b44a6f1";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"1";s:8:"filesize";s:8:"6948 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}s:32:"dfcb5cd4d7bc0e3f7eb655e62dd6bc64";a:14:{s:3:"url";s:22:"http://wwwdedecmscom";s:5:"email";s:17:"admin@dedecmscom";s:4:"time";s:10:"2009-07-17";s:4:"team";s:8:"织梦官方";s:4:"name";s:8:"圈子模块";s:8:"indexurl";s:20:"/group/mygroupphp";s:9:"indexname";s:4:"圈子";s:4:"hash";s:32:"dfcb5cd4d7bc0e3f7eb655e62dd6bc64";s:7:"autodel";s:1:"1";s:9:"autosetup";s:1:"1";s:8:"ismember";s:1:"1";s:8:"filesize";s:9:"83190 Kb";s:4:"lang";s:6:"gb2312";s:10:"moduletype";s:4:"soft";}}

Dedecms去掉URL中a目录的方法有两个:

方法一:

如果你是新站我们可以在创建时文章栏目的时,选择网站根目录或者cms根目录,这样就会去掉/a/

1、首选在系统设置那的系统基本参数那,文档HTML默认保存路径,把a去掉。

2、然后在到栏目管理那修改下,文件保存目录,自己命名。

方法二:

如果直接替换目录/a/而,文章中没去了对网站排名不好,会有很多死链接了,我们直接在Dedecms后台中命令中执行下面sql即可,然后重新生成页面。

输入,代码如下:

UPDATE dede_arctype SET typedir=REPLACE(typedir,'a/','')

  关于dedecms织梦程序首页如何去除indexhtml有以下三种解决方法

  一、静态访问也分3种解决方法

  1、IIS

  打开IIS点击文档,里面将indexhtml置于indexphp上面,这有什么作用呢其实这样设置就是在网站同时有indexphp和indexhtml的情况下,先访问index,html这样就不会出现跳转的情况

          

  2、Apache

  apache里面DirectoryIndex来控制文件检索优先级的

  DirectoryIndex indexhtml indexphp indexhtm

  和iis一样,将indexhtml往前放

  3、虚拟主机

  把网站默认首页indexhtml放到indexphp前面,这样它自动读到indexhtml就不会跳转了

          

  二、直接动态浏览

  网站动态访问的情况下,程序会删除根目录下面的Indexhtml

,那么会执行include(dirname(__FILE__)。‘/indexhtml’);这段代码,把首页引用而非跳转。

          

  三、把dedecms的indexphp更为以下内容

  GetOne("Select From `#@__homepageset`"); $row['templet'] =

MfTemplet($row['templet']); $pv = new PartView();

$pv->SetTemplet($cfg_basedir $cfg_templets_dir "/" $row['templet']);

$pv->SaveToHtml(dirname(__FILE__)'/indexhtml');

include(dirname(__FILE__)'/indexhtml'); exit(); >

  //自动生成HTML版

  require_once (dirname(__FILE__) "/include/commonincphp");

  require_once DEDEINC"/arcpartviewclassphp";

  $GLOBALS['_arclistEnv'] = 'index';

  $row = $dsql->GetOne("Select From `#@__homepageset`");

  $row['templet'] = MfTemplet($row['templet']);

  $pv = new PartView();

  $pv->SetTemplet($cfg_basedir $cfg_templets_dir "/"

$row['templet']);

  $pv->SaveToHtml(dirname(__FILE__)'/indexhtml');

  include(dirname(__FILE__)'/indexhtml');

  exit();

  >

  其实主要就是把那段301定向代码删除

  header(‘HTTP/11 301 Moved Permanently’);

  header(‘Location:indexhtml’);

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » dede文档HTML默认保存路径把a去掉了,改变路径缩短了url。

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情