RewriteCond %{QUERY_STRING} .* RewriteRule ^(.*\.map)$ /cgi-bin/mapserv?map=/var/www/html/map/$1&%1 [PT]