How can I modify regular expression so it can also accept + in my URL
see: http://awakeningwithin.simpletix.com/Search/Lorem+/
… error
if your remove the symbol:
http://awakeningwithin.simpletix.com/Search/Lorem/
… it works.
<rule name="RewriteSearch" stopProcessing="true">
<match url="^Search/([_0-9a-z-]+)" />
<action type="Rewrite" url="Search.aspx?term={R:1}" />
</rule>
The plus
+character in URL means SPACE (the same as%20).1. Based on the above try this one:
^search/([-_0-9a-z\+ ]+)2. If you see 404 error like this:
or use this code (place somewhere in web.config in website root folder):
If #1 does not work, then do #1 AND #2.
TESTED on IIS 7.5 — works fine.