• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.