# rewrite`s rules for wordpress pretty url
LoadModule rewrite_module  modules/mod_rewrite.so
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [NC,L]

ExpiresActive On
ExpiresByType application/x-javascript  "access plus 1 days"

<Files index.php>
RewriteRule ^(.*)$ index.php?show=$1
ExpiresDefault A30
CacheEnable mem
</Files>

<Location /maps/>
# Set a map variable to access map.txt from config
RewriteMap map txt:map.txt
# Use tolower function to convert string to lowercase
RewriteMap lower int:tolower
# Get requested file name
RewriteCond %{REQUEST_URI} ^/([^/.]+)\.html$ [NC]
# Seek file name in map-file
RewriteCond ${map:${lower:%1}|NOT_FOUND} !NOT_FOUND
# Perform rewriting if the record was found in map-file
RewriteRule .? /index.php?q=${map:${lower:%1}} [NC,L]
</Location>

<Directory /var/www/test/>
RewriteMap examplemap txt:/path/to/file/map.txt 
RewriteRule ^/ex/(.*) ${examplemap:$1} 
</Directory>

AccessFilename .htaccess