Http身份验证导致Expression Engine网站

时间:2015-04-27 18:13:13

标签: apache .htaccess authentication cpanel expressionengine

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

可能必须使用htaccess中的url重写来删除' index.php'来自Expression Engine的网址,但我不完全确定。

非常感谢任何线索!

这是.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]

0 个答案:

没有答案
相关问题