I have tried and tried to understand how this works, and I cannot figure out for the life me 1: Regular Expressions and 2:How to format them for URL-Rewriting.
I'm using some code I found online that does URL-rewriting but I don't know how to set up my rules. Here's an example:
Here are the rules I want.
1. I have a stylesheet and javascript files that I don't want to break when rewriting kicks in.
2. shows up as 3. converts to: 4. converts to:
Is this possible/difficult? Please help, I would greatly appreciate it.
_______________
_brian.
I'm using some code I found online that does URL-rewriting but I don't know how to set up my rules. Here's an example:
Code:
<rule name="Search Page"><!--probably wrong...-->
<url>/([a-zA-Z][\w-]{1,149})\/</url>
<rewrite>/search.aspx?q=$1</rewrite>
</rule>
<rule name="Content Page">
<url>/([a-zA-Z][\w-]{1,149})/([a-zA-Z][\w-]{1,149})\/</url>
<rewrite>/content.aspx?Category=$1&Item=$2</rewrite>
</rule>
Here are the rules I want.
1. I have a stylesheet and javascript files that I don't want to break when rewriting kicks in.
2. shows up as 3. converts to: 4. converts to:
Is this possible/difficult? Please help, I would greatly appreciate it.
_______________
_brian.