Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[HELP] IIS Url rewrite
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ying" data-source="post: 271343" data-attributes="member: 229"><p>I'm trying to rewrite URL in IIS to rewrite a url but only if a certain get variable is set heres my code:</p><p></p><p><rule name="Imported Rule 8" stopProcessing="true"></p><p> <match url="^mail/(.*)/(.*)/?$" ignoreCase="false" /></p><p> <action type="Rewrite" url="index.php?url=mail&amp;view={R:1}&amp;msgid={R:2}" appendQueryString="true" /></p><p> </rule></p><p></p><p>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?</p></blockquote><p></p>
[QUOTE="ying, post: 271343, member: 229"] 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&view={R:1}&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? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[HELP] IIS Url rewrite
Top