php – FUELCMS(codeigniter)htaccess:order接受一个参数,’allow,deny’,’deny,allow’,error

前端之家收集整理的这篇文章主要介绍了php – FUELCMS(codeigniter)htaccess:order接受一个参数,’allow,deny’,’deny,allow’,error前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在我的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相关文章