How to replace space in uri with Isapi rewrite

93 views Asked by At

i have to replace spaces in uri like : /parma/vendita/villa%20schiera/via%20cremonese/

With a - char to have this: /parma/vendita/villa-schiera/via-cremonese/10339

I really appreciate a suggestion to write isapi rewrite rule

Thanks :)

1

There are 1 answers

0
TonyCool On

Try this rule:

RewriteBase /
RewriteRule ^(.*)\%20(.*)$ /$1-$2 [NC,LP]