3
I am having a problem when trying to free access to 404.html page through my . htaccess, always gives Internal Server Error. How should I apply a rule to only 404.html is released for direct access?
.htaccess:
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^([^/]*)$ index.php?page=$1 [L]
RewriteRule ^([^/]*)/([^/]*)$ index.php?page=$1&sub=$2 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ index.php?page=$1&sub=$2&id=$3 [L]
<Files *.php>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Files>
<Files index.php>
Order Allow,Deny
Allow from all
</Files>
Root, In the same index folder :D
– Rafael Alexandre
My . htaccess blocks direct access to . html and . php files, only . jpg, . css, . js are released. I would like to free up access to . html files in general.
– Rafael Alexandre