issue with url rewriting
<p>i have multiple rules on web.config  they are:</p>

<pre><code>1. &lt;rewrite url="~/(.+)-(.+)-(.+)-(.+)-(.+).aspx" to="~/byalphabetical.aspx?alph=$5"/&gt;
</code></pre>

<p>this one works fine , it check the 5 string and base on that it goes to byalphabetical.aspx page.</p>

<pre><code>2. &lt;rewrite url="~/(.+)-(.+).aspx" to="~/b.aspx?alph=$1"/&gt;

&lt;rewrite url="~/(.+)-(.+)-(.+).aspx" to="~/b.aspx?alph=$1"/&gt;

&lt;rewrite url="~/(.+)-(.+)-(.+)-(.+).aspx" to="~/b.aspx?alph=$1"/&gt;
</code></pre>

<p>i have try this for,  if any url with (3 to 4 dash(-)) it goes to b.aspx page with first text search.</p>

<p>i just want it to know is this a right way or can i optimize it?</p>

<p>one more issue i m facing is. if my url is www.ysad.com/test-me-url-link.aspx then it goes to b.aspx page (as i have set rewrite path for it,)</p>

<p>but when my url is  <strong>www.ysad.com/category/test-me-url-link.aspx</strong> the  also it get hit the same page.</p>

<p>where i have not mention files form category folders are need to move as per in my web.config</p>

<pre><code>&lt;rewrite url="~/(.+)-(.+)-(.+)-(.+).aspx" to="~/b.aspx?alph=$1"/&gt;
</code></pre>

<p>please suggest where i m wrong?</p>
