I’m at my wits end here , I normally like to work things out on my own but this has me well and truly beaten here..
I’m trying to mod rewrite my urls that contain pluses…
/search.php?q=can+be+any+length
to
/can-be-any-length.html
Any help would be really appreciated becaus rewriting the + php is not an option
Using mod_rewrite for this kind of work is not the best option as you can only replace a fixed amount of characters at at time. Using PHP would certainly be easier.
But you can use the “N” (Next) flag to restart replacement, causing the rewrite engine to loop while there’s a “+” in the query string: