Skip to content

Instantly share code, notes, and snippets.

@huyanhvn
Created August 19, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huyanhvn/2199f9dc0c92aa17f229 to your computer and use it in GitHub Desktop.
Save huyanhvn/2199f9dc0c92aa17f229 to your computer and use it in GitHub Desktop.
apache-stuff
### USING DBM MAP
RewriteEngine On
RewriteMap some_map dbm=sdbm:/var/www/some_map.map
RewriteCond %{QUERY_STRING} some[iI]d=(\d+)
RewriteCond ${some_map:%1} !=""
RewriteRule ^/some/thing/view\.asp$ /some/thing/else/${some_map:%1}? [P]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment