Search and replace in apache htaccess a RewriteRule

Posted by Paul Irish on Stack Overflow See other posts from Stack Overflow or by Paul Irish
Published on 2009-05-28T05:57:19Z Indexed on 2010/06/07 12:32 UTC
Read the original article Hit count: 171

Filed under:
|
|

I'd basically like to get

/path/file+name+with+plusses.mp3

to rewrite to

/path/file name with plusses.mp3

In my case wordpress is intercepting the request and giving a 404. But the file does indeed exist.

Given the constraints of the regex in mod_rewrite implementation, I haven't yet seen a straightforward way of doing this.

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite