Phpcms V9 site Migration Replacement Domain name method

Source: Internet
Author: User
Tags modify domain domain name

During the development of the website, it is possible to modify the domain name many times. So how do we set it up in the Phpcms V9?

Please make the following steps to modify:

    1. Modify/caches/configs/system.php inside all and domain name, the former old domain name modified to the new domain name on it.
    2. Background Settings-site management to modify the corresponding site's domain name.
    3. Update the system cache. Click the "Update Cache" button in the upper-right corner of the background.
    4. Access to Content-"attachment management-" attachment address replacement. Replace the attachment address in batches with the new address.
    5. Content-"Batch update URL." Update the address of all the articles.
    6. Here is the whole station has been generated once.

Further, how to transfer space, and change the domain name?

This situation is more complicated than changing the domain name, involving the migration of the database.

This situation is more reliable than the replacement of domain names, often we do a local site, and then uploaded to space, which involves the replacement of domain names and database migration.

Phpcms V9 Web site migration specific methods are as follows:

    1. Upload all the program files (if the host support compression package online decompression, such as the Chinese name Network space on the support.) , then make a ZIP packet, ftp upload to the corresponding directory, online decompression.
    2. In the local use of Myphpadmin database management software to export the local database SQL files, and then use EditPlus and other software to bulk change the domain name address, such as the original is the local http://localhost/phpcms, Now the domain name is www.php100.com, then the need to bulk http://localhost/phpcms batch replacement for http://www.php100.com, replace and save.
    3. In the database management of the server, the modified SQL file is imported through Myphpadmin.
    4. Modify the first step to extract the database name password in the good/caches/configs/database.php, and modify the/caches/configs/system.php inside all the domain name, the old address to modify the new address.
    5. Login background, update cache, batch update generate HTML, so transfer success.


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.