Having an issue with re-writing a URL from - dashes to + signs I have searched through the forums and found how to get the first dash... but cant figure out how to break all of my words apart. any help would be appreciated.
URL: http://sub.domain.com/foo/bar/_/could-be-any-topic/eventual-search-term-here-r1646
so far i have:
RewriteCond %{HTTP_HOST} ^sub\.domain\.com$
RewriteRule foo\/bar\/_\/(.+)\/([^-]*)-+(.*)\-r(.+) http://sub.domain.com/$2+$3
which would output: http://sub.domain.com/eventual+search-term-here
The search term could have endless amount of words in it so wondering how i go about that.
Thanks
/Steve