【问题标题】:FUELCMS(codeigniter) htaccess: order takes one argument, 'allow,deny', 'deny,allow', errorFUELCMS(codeigniter) htaccess: order 接受一个参数, 'allow,deny', 'deny,allow', 错误
【发布时间】:2012-07-27 06:26:58
【问题描述】:

我正在尝试在我的 arch linux 灯服务器中使用fuelcms。但我不能让 htaccess 工作。我的主文件夹是 ytsejam/fuel_cms/..

这是我的 .htaccess 文件:

Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On

<Files .*>
    Order deny, allow
    Deny From All
</Files>

# Allow asset folders through
RewriteRule ^(fuel/modules/(.+)?/assets/(.+)) - [L]

# Protect application and system files from being viewed
RewriteRule ^(fuel/install/.+|fuel/crons/.+|fuel/data_backup/.+|fuel/codeigniter/.+|fuel/modules/.+|fuel/application/.+|\.git.+) - [F,L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule .* index.php?/$0 [L]
</IfModule>
 Options -Indexes

/var/log/httpd/error_logs 显示

/home/ytsejam/public_html/fuel_cms/.htaccess: order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure'

谁能帮帮我?

【问题讨论】:

    标签: php .htaccess codeigniter


    【解决方案1】:

    您刚刚在逗号后插入了额外的空格

    "deny, allow" 必须是"deny,allow"

    【讨论】:

    • 谢谢!我浪费了 30 分钟来弄清楚为什么它不起作用
    猜你喜欢
    • 2017-03-15
    • 2020-09-27
    • 2011-01-16
    • 2012-12-28
    • 1970-01-01
    • 1970-01-01
    • 2017-07-29
    • 2014-12-11
    • 2016-02-13
    相关资源
    最近更新 更多