librenms/html/.htaccess
Neil Lathwood 80093d3934 updated htaccess to check for mod_filter (#5980)
* updated htaccess to check for mod_filter

* added mod_deflate check
2017-02-23 23:02:30 +00:00

26 lines
723 B
ApacheConf

# DO NOT CHANGE THIS FILE
# If you need to change this file, you are doing something wrong.
Options FollowSymlinks Multiviews
AddType image/svg+xml .svg
<IfModule mod_filter.c>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>
</IfModule>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
RewriteRule ^api/v0(.*)$ api_v0.php/$1 [L]
RewriteCond %{REQUEST_URI} !=/server-status
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
RewriteRule ^(.*)$ index.php/$1/
AcceptPathInfo On