FUELCMS (codeigniter) htaccess: the order takes one argument, "allow, reject", "deny, allow", error

I am trying to use fuelcms on my linux arch server. But I can not get htaccess to work. My home folder is ytsejam / fuel_cms / ..

This is my .htaccess file:

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 indicates that

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

Can anybody help me?

+7
source share
1 answer

You just inserted an extra space after the decimal point

"deny, allow" must be "deny,allow"

+15
source

Source: https://habr.com/ru/post/921458/


All Articles