recherche

Maison  >  Questions et réponses  >  le corps du texte

php - DeDeCMS怎么替换文章内所有的链接

如题:DeDeCMS怎么替换文章内所有的链接
例如:

<a href="http://www.1.com/werw.html">abc1</a>
<a href="http://www.2.com/dir/werw.html">abc2</a>
<a href="http://www.1.com/2324.html">abc3</a>

可以写成PHP文件或mysql语句
天蓬老师天蓬老师2897 Il y a quelques jours531

répondre à tous(2)je répondrai

  • 巴扎黑

    巴扎黑2017-04-10 15:17:34

    dede后台有批量替换的

    répondre
    0
  • 迷茫

    迷茫2017-04-10 15:17:34

    找到存放文章的数据表,例如叫tablename ,保存文章内容的字段叫 content
    执行下列语句

    sqlupdate tablename set content =replace(content,"httpA","httpB")
    

    répondre
    0
  • Annulerrépondre