I am attempting to make a rewrite map that does the following
1. Based on Refering URL KEYWORD - Not the whole URL
2. Map words from a flat text file and redirect to http:// or local
test file
3. If keyword is not found(matched) then no rewriting is done.
-------------------------------------
Example scenario:
Person clicks link on referring page:
http://www.veryComputer.com/
This links to my page: http://www.veryComputer.com/
Hits my .htaccess (or httpd.conf virtualhost)
in my keymap file:
somefunction http://www.veryComputer.com/
----------------------------------------
I tried this, but it does not function:
Rewri*gine on
RewriteMap keymap txt:/www/keyword.txt
RewriteRule ^/([^/]+)(.*)$ ${keymap:$1}
keyword.txt is there, apache starts with no errors.
keyword.txt contains:
somefunction http://www.veryComputer.com/
Where am I going wrong? Am I making this too complicated?