Debian Codegraph @

test/syntax/source/code/apache

raw
1 # rewrite`s rules for wordpress pretty url
2 LoadModule rewrite_module modules/mod_rewrite.so
3 RewriteCond %{REQUEST_FILENAME} !-f
4 RewriteCond %{REQUEST_FILENAME} !-d
5 RewriteRule . index.php [NC,L]
6
7 ExpiresActive On
8 ExpiresByType application/x-javascript "access plus 1 days"
9
10 Order Deny,Allow
11 Allow from All
12
13 <Location /maps/>
14 RewriteMap map txt:map.txt
15 RewriteMap lower int:tolower
16 RewriteCond %{REQUEST_URI} ^/([^/.]+)\.html$ [NC]
17 RewriteCond ${map:${lower:%1}|NOT_FOUND} !NOT_FOUND
18 RewriteRule .? /index.php?q=${map:${lower:%1}} [NC,L]
19 </Location>