Created
August 19, 2015 16:24
-
-
Save huyanhvn/2199f9dc0c92aa17f229 to your computer and use it in GitHub Desktop.
apache-stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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