Welcome to WebmasterWorld Guest from 220.127.116.11
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):
Redirect Permanent /mydir/file%20name.html [mysite.com...]
I'm assuming the %20 is throwing it off somehow. (Making it an actual space, rather than %20, doesn't work either.)
Does the %20 have to be escaped somehow? Is there a different way to do this?
Many thanks for any suggestions.
RedirectMatch 301 ^/mydir/fi[b]le\ na[/b]me.html$ http://example.com/mydir/filename.html
Most 500-Server Errors do... :)
So what was in your server error log file when you got that 500 response? -- It'll often tell you exactly what's wrong if it is a server-level error.
If you want to try mod_rewrite and your server setup allows it, I know this works because I'm using it:
RewriteRule ^([^\ ]*)\ (.*)$ http://www.example.com/$1$2 [R=301,L]