[HELP] IIS Url rewrite

ying

goddess
Jul 4, 2010
82
19
I'm trying to rewrite URL in IIS to rewrite a url but only if a certain get variable is set heres my code:

<rule name="Imported Rule 8" stopProcessing="true">
<match url="^mail/(.*)/(.*)/?$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url=mail&amp;view={R:1}&amp;msgid={R:2}" appendQueryString="true" />
</rule>

but i dont want the 2 get variables to be mandatory... i want this url rewrite to only activate itself when get variable msgid is set in the link if it isnt then I dont wanna make it mandatory. how can I go about this?
 

Users who are viewing this thread

Top