简体   繁体   English

wordpress多站点-无法编辑htaccess文件

[英]wordpress multisite - can't edit htaccess file

I am getting redirect error on my sub sites in my WordPress multi site network, and my .htaccess file keep reverting back to 我的WordPress多站点网络中的子站点上出现重定向错误,并且我的.htaccess文件不断恢复为

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

I have tried -updating my main site and all of the sites in my network -deactivating all plugins 我已经尝试-更新主站点和网络中的所有站点-停用所有插件

In your wp-config.php file, add the following lines of code at the end: 在您的wp-config.php文件中,在末尾添加以下代码行:

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');

Should fix the problem! 应该解决问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM