当前位置: 首页 > wzjs >正文

开发的某网站建设公司网站源码友情手机站

开发的某网站建设公司网站源码,友情手机站,wordpress权限数字,做企业评价的有哪些网站一、cms里文章页自定义文件名去掉html方法&#xff0c;文章命名规则即便去掉html&#xff0c;在自定义文件名里生成的时候调取本页面链接依然会带html&#xff0c;用已下代码替换掉.html <link rel"canonical" href"{dede:global.cfg_basehost/}{dede:field…

、cms里文章页自定义文件名去掉html方法,文章命名规则即便去掉html,在自定义文件名里生成的时候调取本页面链接依然会带html,用已下代码替换掉.html

<link rel="canonical" href="{dede:global.cfg_basehost/}{dede:field name='arcurl' function='str_replace(".html", "", @me)'/}">

.找到上一篇下一篇,在include文件夹下的arc.archives.class.php

$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']);

修改成

$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']);// 修改:移除 .html 扩展名$mlink = str_replace('.html', '', $mlink);
$nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);

修改成

$nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);// 修改:移除 .html 扩展名$mlink = str_replace('.html', '', $mlink);

、找到include文件夹下的arc.listview.class.php,修改list列表页生成的自定义名字去掉html。
找到

                    $row['filename'] = $row['arcurl'] = GetFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']);$row['typeurl'] = GetTypeUrl($row['typeid'],MfTypedir($row['typedir']),$row['isdefault'],$row['defaultname'],$row['ispart'],$row['namerule2'],$row['moresite'],$row['siteurl'],$row['sitepath']);

修改成

                    $row['filename'] = $row['arcurl'] = GetFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']);$row['typeurl'] = GetTypeUrl($row['typeid'],MfTypedir($row['typedir']),$row['isdefault'],$row['defaultname'],$row['ispart'],$row['namerule2'],$row['moresite'],$row['siteurl'],$row['sitepath']);// 去掉 .html 后缀$row['arcurl'] = str_replace('.html', '', $row['arcurl']);$row['filename'] = str_replace('.html', '', $row['filename']);$row['typeurl'] = GetTypeUrl($row['typeid'], MfTypedir($row['typedir']), $row['isdefault'], $row['defaultname'],$row['ispart'], $row['namerule2'], $row['moresite'], $row['siteurl'], $row['sitepath']);

、修改tag静态生成,文章链接自定义的不带html
找到

$row['filename'] = $row['arcurl'] = GetFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'],$row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']);

注释掉原代码,修改成

/* $row['filename'] = $row['arcurl'] = etFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'],
$row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']);*/// 修改后的代码:去掉 .html 后缀
$row['filename'] = $row['arcurl'] = str_replace('.html', '', GetFileUrl($row['id'], $row['typeid'], $row['senddate'], $row['title'], $row['ismake'], $row['arcrank'], $row['namerule'], $row['typedir'], $row['money'], $row['filename'], $row['moresite'], $row['siteurl'], $row['sitepath']));//结束

文章转载自:

http://yXxNubYR.wnkqt.cn
http://iduIsxbb.wnkqt.cn
http://e4O50fcN.wnkqt.cn
http://96XRuDPA.wnkqt.cn
http://Chnzfb5C.wnkqt.cn
http://hrpg0q5b.wnkqt.cn
http://WZZooPAh.wnkqt.cn
http://HrlgDS2V.wnkqt.cn
http://hrLPkkcS.wnkqt.cn
http://2DWAsdSE.wnkqt.cn
http://9ipRfGVh.wnkqt.cn
http://tLZZEV9E.wnkqt.cn
http://C4g2CKcv.wnkqt.cn
http://IJt3Tpgo.wnkqt.cn
http://F1330C1j.wnkqt.cn
http://0gYYQToW.wnkqt.cn
http://zfTvdXUF.wnkqt.cn
http://Lzi2al9v.wnkqt.cn
http://Q0YEPojc.wnkqt.cn
http://xTPdfecO.wnkqt.cn
http://2eZH2Aug.wnkqt.cn
http://HYLaLxJv.wnkqt.cn
http://7ONpiRNx.wnkqt.cn
http://6RzeK5qE.wnkqt.cn
http://h1JRp6r0.wnkqt.cn
http://b4vzwFoB.wnkqt.cn
http://Uj26Lb79.wnkqt.cn
http://pqQhQk1b.wnkqt.cn
http://DUHB1B1A.wnkqt.cn
http://ntO1OwQt.wnkqt.cn
http://www.dtcms.com/wzjs/631419.html

相关文章:

  • 公众号第三方网站开发免费的行情网站app代码
  • 学校网站建设运行简介做民宿推广都有哪些网站
  • 什么是网站开发时间进度表如何知道网站是否备案过
  • 企业网站制作方法网站的外链是怎么做的
  • 网站的数据库有什么用做网站程序先从哪一步开始
  • 建设银行网站登录没反应抓取的网站如何做seo
  • 金堂做网站的公司浏览器入口
  • 网站开发 图片大学生做推送的网站
  • 智能网站建设服务开源手机网站cms
  • c 做彩票网站南京江北新区
  • 家具公司网页设计宁波优化seo
  • 艺术网站建设模板网站维护 北京
  • 购物网站seo网站建设什么软件
  • 自己做网站地址怎么查看网站的点击率
  • 网站图片展示方式有哪些logo设计公司 北京
  • 攻略网站的建设金属材料网站建设
  • 专门装修的网都有什么网网站网站建设洽谈
  • 设计感十足的网站福田庆三鞠婧祎
  • 做网站运营难吗网页游戏推荐排行
  • 国外主流媒体网站wordpress 页面添加图标
  • 做网站的s标的软件网页设计实例
  • 文章类网站程序宁波建设监理协会
  • wordpress 浮框河北seo基础入门教程
  • 网站网站做维护犯罪自助建站免费自助建站网站
  • 详情页模板哪个网站好做的阿里巴巴网站的放哪个科目
  • 深圳flash网站建设如何开发网站建设业务
  • 做微信用什么网站58网站建设58xiamen
  • 重庆市建设岗培中心网站密云做网站的
  • 行业网站系统中国交通建设官方网站
  • 做一家公司网站要注意哪些手机制作ppt哪种软件好