Discuz how to change the domain name of the website?
1. open /config/config_global.php file, modify the corresponding new domain name and runquery set value to 1
$_config[‘cookie’][‘cookiedomain’] = ‘.new domain name. com’;
$_config[‘admincp’][‘runquery’] = 1;// whether to allow background operation SQL statement 1 =yes 0 =no [safety ]
2. log in to the background management with a new domain name, and then set it as follows in the background management:
1.backstage ==>global ==>site information ==>website url
2.backstage ==>global ==>domain name settings ==>application domain name ==>forum and root domain name settings mobile version access settings: - mobile post source customization:
3.backstage ==>interface ==>navigation ==>the absolute address is used in the link and needs to be modified to a new domain name
4.backstage ==>operations ==>related connections, no modification is required without setting. here, optimization mainly involves optimization (site promotional advertisements, friendly links)
5.backstage ==>cloud platform ==>synchronize site information background - tools - go to the platform diagnostic tool (may need to be manually set IP)
6.backstage ==>webmaster ==>ucernter set up ==>ucenter access address 7. ucenter==>application management ==>the main application url
BBS navigation—top and bottom (the version website needs to be updated), forum grid advertisements, room advertisements, and list advertisements must be updated.
3. open uc_server/data/config.inc.php file, change the old domain name inside.
4. log in to the backend - webmaster - uc settings and your domain name /uc_server, adjust the information inside consistently and make sure the domain name is the new domain name
if you have modified the domain name resolution and can log in directly with the new domain name, then make the above modification
if you cannot log in to the background with a new domain name, please log out automatically. config/config_global.php中的$_config[‘admincp’][‘checkip’] = 1;修改为$_config[‘admincp’][‘checkip’] = 0;
if all operations are correct, it will jump to the old domain name. then check the plug-in and see, some plug-ins will determine the dead domain name.
after completing the above work, you can access the new domain name normally, but the url of the content that has been posted has not changed. you have to perform the following steps to change the new url.
5. enter Discuz backend – webmaster – database – upgrade
batch replacement – post url
UPDATE pre_forum_post SET message=REPLACE(message,’ old domain name', 'new domain name' );
batch replacement – title url
UPDATE pre_forum_thread SET subject=REPLACE(subject,’ old domain name', new domain name' );

the above is shared by suyou.com with everyone." Discuz how to change the domain name of the website? ", thank you very much for your patience to finish this article. we will provide you with more information on reference, use or learning and communication. we can also provide you with:enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionfor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation". if you need cooperation, please scan the code to consult, and we will serve you sincerely.
TAG label: