I have an application which converts spaces in URLs to plusses.
A load of files on the server have spaces in their filenames (this is out of my hands) and so the URLs the application makes are wrong.
eg:
http://www.example.com/this is a file.html
comes out like:
http://www.example.com/this+is+a+file.html
The application is also out of my control so I can't change how that works, so Im stuck looking for a solution.
Is there anyway to rewrite the 2nd URL to convert the plusses back to spaces? The number of words in each filename is not fixed and varies from 0 to about 5 words.
Ive had a good look around and can't find any examples of this kind of problem.
My alternative is to make a custom 404 handler and rewrite the URLs to redirect the user. But mod_rewrite seems like a cleaner solution to the problem.
Thanks in advance