What if the domain name of the fixed website of zblog cannot log in to the background?

Li Yang's Blog 2020-04-26 1.82 W Reading 2 Comments

Tips: This article has exceeded one thousand four hundred and ninety-three No update in days, please note whether relevant content is still available!

Many netizens have changed their domain names after opening the "fixed website domain name" and "the background also uses the fixed domain name" (after 1.6, there was no background option). They found that they could not open the domain name after logging in, and various errors were also made at the front desk. In fact, I remember that netizens had fed back about this problem long ago, but few people did so, and they didn't care about it. After all, this function is very boring, I don't even know what the moral of doing this is. Is it not good to make a 301 redirect directly in the pseudo static state? Why do you have to use this?

Well, it's no use talking too much. After all, the website can't be opened now. We should find the reason and solve the problem, Baidu After a while, yes, if you have a question, ask the group friend, talk nonsense for one hour, ask Baidu, and solve the problem in one minute, course There are two. The first one is effective, and the second one is not tested (it is not recommended to apply, after all, the database needs to be modified). The tutorial is as follows:

Find the root directory of the website (I have said many times what the root directory is, but I don't know how to go to Baidu) index.php File (not in the theme template), copy the following code and paste it on the location as shown in the figure, Remember not to use txt The text editor php file will cause file errors. Please use Editplus etc. Software Modify and save the file after modification to restore and close the function;

The codes are as follows:

 $zbp->option['ZC_PERMANENT_DOMAIN_ENABLE'] = false; $zbp->option['ZC_PERMANENT_DOMAIN_WITH_ADMIN'] = false; $zbp->SaveOption();

As shown in the figure:

 What if the domain name of the fixed website of zblog cannot log in to the background? Page 1

PS: Code plug-in unit In the two red boxes, the complete code is:

 What if the domain name of the fixed website of zblog cannot log in to the background? Page 2

The second way is to modify the file zb_users/c_option.php“ ); "It could have been" ) ", add the following code:

 'ZC_PERMANENT_DOMAIN_WHOLE_DISABLE' => true,

As shown in the figure, the blue dialog box:

 What if the domain name of the fixed website of zblog cannot log in to the background? Page 3

Then save it, you can log in to the background and turn off the fixed domain name setting, and then go back to c_option.php to delete the added line. After deleting it, the background can happily set the fixed domain name again (forgetful, disgusted. gif)!

Well, as for whether to delete the code of the first method, it's optional. After all, @ ice sinking and water floating super version didn't say... Remember that sentence before it was revised Backup!!! Backup!!! Backup!!!

Article copyright notice: unless otherwise noted Lao Li's Notes For original articles, reprints or copies, please use hyperlinks and indicate the source.

Comment

Quick reply: expression:
 Addoil Applause Badlaugh Bomb Coffee Fabulous Facepalm Feces Frown Heyha Insidious KeepFighting NoProb PigHead Shocked Sinistersmile Slap Social Sweat Tolaugh Watermelon Witty Wow Yeah Yellowdog
Comment List (Yes two Comments, eighteen thousand one hundred and eighty-seven People around)
 Netizen nickname: 51sourcing.com
51sourcing.com V Iron powder  Google Chrome 81.0.4044.129  Windows 10 x64 sofa
2020-05-03 From Shanghai reply
This tutorial is very good. I encountered this problem before. I could not log in after changing the domain name. I had no choice but to switch back to the original domain name and go to the background settings to turn off the chicken ribs function.
 Netizen nickname: Li Yang Blog
Li Yang's Blog V Blogger  Sogou Explorer  Windows 10 x64
2020-05-03 From Shanghai reply
@51sourcing.com I don't know why someone wants to fix it.
 cancel
 WeChat QR code
 WeChat QR code
 Alipay QR code