Welcome Guest, Not a member yet? Register   Sign In
modifying application htaccess
#1

I would like to modify this htaccess


Code:
<IfModule authz_core_module>
   Require all denied
</IfModule>
<IfModule !authz_core_module>
   Deny from all
</IfModule>


To enable css and images and js files only

Is that possible if so how to do so correctly.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply
#2

You should use something like: (apache 2.4)

Code:
Require all denied

<FilesMatch ".*\.(css|js)$">
      Require all granted
</FilesMatch>
Reply
#3

(06-03-2016, 11:51 PM)Diederik Wrote: You should use something like: (apache 2.4)

Code:
Require all denied

<FilesMatch ".*\.(css|js)$">
     Require all granted
</FilesMatch>

Do I replace your code with what code is in htaccess
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB