Heim  >  Artikel  >  Backend-Entwicklung  >  dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化,_PHP教程

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化,_PHP教程

WBOY
WBOYOriginal
2016-07-13 09:45:332020Durchsuche

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化,

1.我们添加自定义属性跳转文章,填写好跳转网址,如下图

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我

2.我们发现链接地址却是动态的,类似http://localhost/plus/view.php?aid=3622,而我们想要http://localhost/zt/dbs/
dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我  

 3.通过查看代码,我们发现修改调用dedecms语句即可

原代码:链接href调用[field:arcurl]是动态的 dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我

 修改后代码:链接[field:redirecturl/]是静态的,符合我们的需要

dedecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化 - itwo - 我就是我

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1040154.htmlTechArticlededecms列表页文章链接http://localhost/plus/view.php?aid=2522 静态化, 1.我们添加自定义属性跳转文章,填写好跳转网址,如下图 2.我们发现链接地址却...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn