【站长啦VIP教程-程序篇】网站详情改数字链接为网址链接,35DIR适用
目前绝大多数的网站目录的网站详情链接都是数字ID形式的,包括站长啦网站目录,其实35DIR是可以用网址链接代替数据链接的,但由于修改比较复杂,很多人不懂修改,今天站长啦VIP就贴出修改方法,让大家自己去尝尝鲜。
如何把网址狗狗搜搜的网站详情页
https://top.cnzzla.com/siteinfo/12900.html改为
http://www.mhwz.cn/site/21262-www.gougousoso.com.html
这样显示呢
下面是修改方法
1、打开\source\module\prelink.php文件
找到第118行
改为
$strurl=$options['site_root'].'site/'.$web_id.'-'.$web_url.'.html';
2、打开\source\module\website.php文件
第38行
$row['web_link'] = get_website_url($row['web_id']);
改为
$row['web_link'] = get_website_url($row['web_id'],$row['web_url']);
第89行
$row['web_link'] = get_website_url($row['web_id']);
改为
$row['web_link'] = get_website_url($row['web_id'],$row['web_url']);
第133行
$row['web_link'] = str_replace('&', '&', get_website_url($row['web_id'], true));
改为
$row['web_link'] = str_replace('&', '&', get_website_url($row['web_id'],$row['web_url'],true));
第194行
$row['web_link'] = str_replace('&', '&', get_website_url($row['web_id'], true));
改为
$row['web_link'] = str_replace('&', '&', get_website_url($row['web_id'],$row['web_url'],true));
第263行
$row['web_link'] = str_replace('&', '&', get_website_url($row['web_id'], true));
改为
$row['web_link'] = str_replace('&', '&', get_website_url($row['web_id'],$row['web_url'], true));
3、去你的伪静态规则增加一条
# RewriteRule ^/site\/(\d+)-(.+)(/?)\.html$ /index.php\?mod=siteinfo&wid=$1
OK
两个文件都要改好就可以了,本文引用的文件为站长啦VIP1.1版本的文件,其他35DIR分类目录请自行对照修改,如果你觉得修改很麻烦,可以找我付费修改!
站长啦网站分类目录联盟交流群:199806108 大家要加入哦
另外需要定制35DIR模版的朋友联系我哈
版权与免责声明:
凡注明稿件来源的内容均为转载稿或由网友用户注册发布,本网转载出于传递更多信息的目的;如转载稿涉及版权问题,请作者联系我们,同时对于用户评论等信息,本网并不意味着赞同其观点或证实其内容的真实性;

![英雄棋士团(预下载)?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/yingxiongqishituanyuxiazai.jpg)
![美食小当家?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/meishixiaodangjia.png)
![2047?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/2047.jpg)
![荣誉指挥官(预下载)?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/rongyuzhihuiguanyuxiazai.png)
![繁荣美食市场物语?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/fanrongmeishishichangwuyu.jpg)
![夸克浏览器 v4.2.1.138 好用的手机浏览器?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/kuakezuolanqi.jpg)
![移动办公软件 OfficeSuite Premium v10.18.28716 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/yidongbangongruanjian.jpg)
![乐秀视频编辑器 VideoShow v8.8.4 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/lexiushipinbianjiqi.png)
![X 浏览器 v3.3.9 一款小巧的安卓浏览器?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/x.jpg)
![安卓密码管理软件 Enpass v6.4.5.368 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/anzhuomimaguanliruanjian.jpg)
![差分复制同步 FastCopy-M v3.6.3.51 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/FastCopy3.png)
![多标签页拓展 Clover v3.5.2 Build 19809 精简绿色版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/Clover.png)
![文件重命名 Advanced Renamer v3.85 Lite 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/Advanced_Renamer.png)
![网络防火监控 GlassWire Elite v2.1.166 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/GlassWire.png)
![影音播放器 Daum Potplayer v1.7.20538 美化便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/PotPlayer.png)