Apache Http身份验证导致Expression Engine站点上出现404页面

Apache Http身份验证导致Expression Engine站点上出现404页面,apache,.htaccess,authentication,cpanel,expressionengine,Apache,.htaccess,Authentication,Cpanel,Expressionengine,我正在尝试使用c面板对cgi bin目录中的分析页面进行密码保护。在c-panel中,我可以进行设置,但当我转到analytics页面时,我得到的是404页面,而不是http身份验证提示 可能必须在htaccess中重写url才能从表达式引擎的url中删除'index.php',但我不能完全确定 任何线索都非常感谢 以下是.htaccess文件: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase

我正在尝试使用c面板对cgi bin目录中的分析页面进行密码保护。在c-panel中,我可以进行设置,但当我转到analytics页面时,我得到的是404页面,而不是http身份验证提示

可能必须在htaccess中重写url才能从表达式引擎的url中删除'index.php',但我不能完全确定

任何线索都非常感谢

以下是.htaccess文件:

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

        # Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) ~gms/$1$2 [R=301,NE,L]

        # Directs all EE web requests through the site index file

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ ~gms/index.php/$1 [L]
</IfModule>

RewriteCond %{HTTP_HOST} ^gms\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.gms\.com$
RewriteRule ^stats\/?$ "http\:\/\/www\.gms\.com\/cgi\-bin\/awstats\.pl\?config\=gms\.com" [R=301,L]

您设置了什么URL/目录作为密码保护?哪一个URL准确地给出了404?apache的error.log中是否还有其他消息?/cgi-bin是受保护的目录。重定向到的是提供404的url,看起来像站点地图。如果cpanel中的错误日志与apache的error.log相同,那么该操作没有相关的错误。那么在长url上重定向后,您会得到404?awstats在不受保护的情况下使用cgi bin?