Dedecms document image path batch modification method

Source: Internet
Author: User

Zhimeng uses an absolute address to upload images. If the domain name is changed, the image url of the previous article will not change. Therefore, we need to replace the old domain name with the new domain name, the method is simple. There is an SQL statement that updates the content of the article.

Copy the following SQL statement to the background of dedecms, Click System> SQL command line tool, and then enter the SQL statement in the text box and click OK. If the operation is successful, the system prompts "successfully executed x SQL statements !"

Update dede_addonarticle set body = replace (body, 'old domain name', 'New domain name ')

Then re-generate an html page, and replace all the old domain names in the article with the new one.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.