Hey I'm trying to replace all occurances of - with + in a url so this:
www.domain.com/category/product-name.htm
is re-written to /cat.cgi?s=product+name&c=category
Unforunately in the shopping cart the actual categories are abbreviated so "category" would be "CA" or something. So I have a bunch of these...
RewriteRule ^category/(.*).htm$ /cat.cgi?s=$1&c=CA
Which is fine, but I don't want my urls to be www.domain.com/category/product+name+here.htm
(the cat.cgi=?s= is a search, so a search with "product-name" would be "seach for 'product' and not 'name' which would not work obviously)
I tried this...
RewriteRule ^(.*)-(.*)$ $1+$2 [N]
and now my server appears to be down. Would this cause some kind of crash? I'm kind of panicked now.
I figured N (next?) would loop through and replace all occurances of - with +?
Thanks.