【问题标题】:wordpress multisite - can't edit htaccess filewordpress 多站点 - 无法编辑 htaccess 文件
【发布时间】:2016-02-14 15:49:24
【问题描述】:

我的 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

我试过了 - 更新我的主站点和我网络中的所有站点 -停用所有插件

【问题讨论】:

    标签: php wordpress .htaccess


    【解决方案1】:

    在您的 wp-config.php 文件中,在末尾添加以下代码行:

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

    应该解决问题!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-11
      • 2018-02-10
      • 1970-01-01
      • 2020-05-08
      • 2012-06-03
      • 2021-05-03
      • 1970-01-01
      相关资源
      最近更新 更多