My site has some filenames with 2 or more spaces.
Some search engines substitute them with some + but in this way their
request can't reach the pages.
I am trying to use mod_rewrite to change the request substituting the
filename with + with the filename with %20.
I am trying to use a rewrite map but I'm not able to make it work.
This is what I wrote in the httpd.conf:
Rewri*gine On
RewriteLog "/home/mhd/rewrite.log"
RewriteLogLevel 9
RewriteMap berno txt:/home/mhd/map.txt
RewriteRule ^/home/mhd/prova/www.domain.it/htdocs/(.*)
/home/mhd/prova/www.domain.it/htdocs/${berno:$1|$1}
In the map I put only a trial substitution such as:
pippo+prova.html pippo%20prova.html
The log gave me this report:
init rewrite engine with requested uri /default.ida
applying pattern '^/home/mhd/prova/www.domain.it/htdocs/(.*)' to uri
'/default.ida'
pass through /default.ida
What is my mistake ?