In my project, my /PropertDetail.aspx can get 2 requests.
1st for PropertyId/PropertDetail.aspx?PropertyId=5
2nd for language/PropertDetail.aspx?PropertyId=5&Language=2
EDIT: and this page can get one of them or it can get both of them, so my override rule should handle both of them
So, I set these rules in web.config
<rewriter>
<rewrite url="^(/.+(\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js)(\?.+)?)$" to="$1" processing="stop" />
<rewrite url="^/(.+)-(.+).aspx$" to="/PropertyDetail.aspx?PropertyId=$2" processing="stop"/>
<rewrite url="^/(.+)-(.+)-(.+).aspx$" to="/PropertyDetail.aspx?PropertyId=$2&Language=$3" processing="stop"/>
</rewriter>
Everything is fine, if there is no language sequence, but if there is a language query, it receives the third expression as PropertyId instead of the language
How can I define these two rules for the same page?
thanks