Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

IIS URL Rewrite help

$
0
0

Hi there, I am trying to create a Rewrite rule but I seem to be having a lot of trouble with it and the rule i created does not seem to work.

Basically what i like to do is re-write alll URLS that are in the form of http://my-site/folder1/folder2/([_0-9a-z-]+)/([0-9]+) to serve up a pagehttp://my-site/folder1/folder2/mypage.asp?x={R:1}&y={R:2}

Could someone help me create this rule?

I tried doing something like this but it didn't work

<rulename="Rewrite to article.aspx">
   <matchurl="^folder2/([_0-9a-z-]+)/([0-9]+)"/>
   <actiontype="Rewrite"url="mypage.asp?x={R:1}&amp;y={R:2}"/>
</rule>


Thank you in advance.


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>