gpt4 book ai didi

php - FUELCMS(codeigniter)htaccess : order takes one argument, 'allow,deny', 'deny,allow',错误

转载 作者:可可西里 更新时间:2023-11-01 12:47:04 30 4
gpt4 key购买 nike

我正在尝试在我的 arch linux lamp 服务器中使用 fuecms。但是我不能让 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'

谁能帮帮我?

最佳答案

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

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

关于php - FUELCMS(codeigniter)htaccess : order takes one argument, 'allow,deny', 'deny,allow',错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11682561/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com