CodeIgniter Forums
modifying application htaccess - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: modifying application htaccess (/showthread.php?tid=65373)



modifying application htaccess - wolfgang1983 - 06-03-2016

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.


RE: modifying application htaccess - Diederik - 06-03-2016

You should use something like: (apache 2.4)

Code:
Require all denied

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



RE: modifying application htaccess - wolfgang1983 - 06-04-2016

(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