首页 文章

WordPress管理页面重定向到主页

提问于
浏览
1

我有 WordPress 的问题 . 该网站工作正常,但在 admin paneledit postinstalled pluginsadd new pluginadd new pagesettings 等各种页面将我重定向到主页 . 我疯狂地谷歌搜索3天,但我刚刚发现了mod_security问题 . 事实证明,对我来说也没用 .

这是我的.htaccess文件

RewriteEngine On
    RewriteBase /

    RewriteCond /home/gokkur/public_html/wp-content/sitemaps%{REQUEST_URI} -f
    RewriteRule \.xml(\.gz)?$ /wp-content/sitemaps%{REQUEST_URI} [L]

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

    
    SecFilterEngine Off
    SecFilterScanPOST Off

1 回答

  • 1

    这是WP .htaccess 文件的默认内容:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    

    也许您的自定义重写规则会产生问题 .

相关问题