Welcome to WebmasterWorld Guest from 184.108.40.206
I have url's of varying length like this
RewriteRule //(.*)/(.*)/(.*)/(.*)/$ /?$1=$2&$3=$4[/PHP]
I used the above with some success, but what I really want to do it replace the %20 with a - and clean up the rest. Probably pretty simple.
The next part i'm more confused on is how I modify my php code in my source to use these new url's by default when the menu is built and such. Any help there would be huge as well.
Thanks in advance guys. I'm still trying to learn all this regex stuff.
Welcome to WebmasterWorld!
This search [google.com] should turn up some good threads to get you started with rewriting static to dynamic URLs.
Modifications of code in these threads [google.com] may help you in getting rid of hex-encoded spaces (the regex to match a space in a RewriteRule is "\ " -- that is, backslash space.)