I' pretty new to IIRF and have question regarding a rewrite rule I'm trying to get to work.
My current rule looks like this:
RewriteRule ^/([a-zA-Z_%+-]+)/([a-zA-Z_%+-]+) ^/EventSchedule.aspx?ev=$1&ev2=$2 [I,L] (Does not work
What I'm trying to accomplish is: (example)
/lakers --> /EventSchedule.aspx?ev=lakers (this is an explicit example)
/suns --> /EventSchedule.aspx?ev=suns
I also have tested using an explicit rule such as "RewriteRule ^/lakers ^/EventSchedule.aspx?ev=lakers [I,L]" (this works, but I would really like a regex rule that would preclude me from writing all the explicit rules.)
I will also have urls such as /lakers/warriors
The error I'm getting is page cannot be found, however the url /eventschedule.aspx?ev=lakers does indeed work.
Thank you in advance for any help