I have a file on my server - call it filename.html. Google Sitemaps is telling me someone is trying to access it at the URL file%20name.html and this is throwing up an error. (%20 is the space character, yes?) Someone on the web must have linked to the file incorrectly, but I haven't been able to locate it.
I assumed I could fix this in .htaccess, by putting in a redirect but the usual method doesn't seem to work (it tells me the file can't be found):
Try using RedirectMatch -- It will allow you to use regular expressions, and so insert a space by preceding it with the regex 'escape' character "\". RedirectMatch 301 ^/mydir/fi[b]le\ na[/b]me.html$ http://example.com/mydir/filename.html
If that doesn't work, you can definitely use mod_rewrite to handle this problem -- It comes up fairly often in this forum.