librenms/html/.htaccess

23 lines
652 B
ApacheConf
Raw Normal View History

Options FollowSymlinks Multiviews
RewriteBase /
RewriteEngine on
RewriteCond %{REQUEST_URI} !^(.*)\.php$
RewriteCond %{REQUEST_URI} !^(.*)\.css$
RewriteCond %{REQUEST_URI} !^(.*)\.jpg$
RewriteCond %{REQUEST_URI} !^(.*)\.gif$
RewriteCond %{REQUEST_URI} !^(.*)\.png$
## Rewrites for Devices
RewriteRule ^devices/location/(.+)/ ?page=devices&location=$1
RewriteRule ^devices/alerted/ ?page=devices&status=alerted
RewriteRule ^devices/alerted/ ?page=devices&status=alerted
RewriteRule ^devices/(.+)/ ?page=devices&type=$1
RewriteRule ^bill/([0-9]+) ?page=bills&bill=$1
RewriteRule ^device/([0-9]+) ?page=device&id=$1
RewriteRule ^([a-z]+)/$ ?page=$1