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:
PS: Code plug-in unit In the two red boxes, the complete code is:
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:
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!!!