2 Alias /pnp4nagios /usr/share/pnp/
3 <Directory /usr/share/pnp>
4 AllowOverride AuthConfig
7 <IfModule mod_rewrite.c>
8 # Turn on URL rewriting
10 Options FollowSymLinks
11 # Installation directory
12 RewriteBase /pnp4nagios
13 # Protect application and system files from being viewed
14 RewriteRule ^(application|modules|system) - [F,L]
15 # Allow any files or directories that exist to be displayed directly
16 RewriteCond %{REQUEST_FILENAME} !-f
17 RewriteCond %{REQUEST_FILENAME} !-d
18 # Rewrite all other URLs to index.php/URL
19 RewriteRule .* index.php/$0 [PT,L]