3 Alias /pnp4nagios /usr/share/pnp/
5 <Directory /usr/share/pnp>
6 AllowOverride AuthConfig
9 <IfModule rewrite_module>
10 # Turn on URL rewriting
12 Options +FollowSymLinks
14 # Installation directory
15 RewriteBase /pnp4nagios
17 # Protect application and system files from being viewed
18 RewriteRule ^(application|modules|system) - [F,L]
20 # Allow any files or directories that exist to be displayed directly
21 RewriteCond %{REQUEST_FILENAME} !-f
22 RewriteCond %{REQUEST_FILENAME} !-d
24 # Rewrite all other URLs to index.php/URL
25 RewriteRule .* index.php/$0 [PT,L]