All TagsRules (RSS)
  • Re: is this possible?

    You do not have to lock down based on windows users/groups. If you are using asp.net membership you could lock those directories based on that. Anyway the rule would look similar to this: <rule name="Block by referrer" patternSyntax="Wildcard"> <match url="*.zip"...
    Posted to Forum by ruslany on 09-12-2008, 5:55 PM
  • Re: is this possible?

    You could certainly create a rule that would reject requests if the referrer is not equial to "login.asp". But this method is not very reliable - is it very easy to write an HTTP client which can set the referrer header to anything it wants, thus bypassing your login page. Have you considered...
    Posted to Forum by ruslany on 09-12-2008, 3:41 PM
  • Re: Looping Through GET Variables with the Url Rewrite Module

    Unfortunately, current release of URL rewrite module does not support loops in rules evaluation. So, I guess, hardcoding the specific number is the only way at this point.
    Posted to Forum by ruslany on 09-02-2008, 5:05 PM
  • Re: Add or remove www

    I think I know what causes the error. Please try re-ordering the conditions in your rules: <rule name="Add www" stopProcessing="true"> <match url=".*" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="...
    Posted to Forum by ruslany on 08-06-2008, 1:35 AM
  • Re: Redirect rule that is SSL aware

    Ignore my previous post - the SERVER_PROTOCOL cannot be used for this because it contains HTTP/1.1 regardless whether SSL is used or not.
    Posted to Forum by ruslany on 08-05-2008, 3:51 PM
  • Re: Add or remove www

    takeos - thanks for your feedback. Below are the answers to your comments. The indexing of the back-references is 0-based with {R:0} or {C:0} being the entire matched string. This is consistent with all regular expression standards. For example in this pattern: ^(www\.)(.*)$ If you try this string: www...
    Posted to Forum by ruslany on 08-05-2008, 1:15 PM
  • Re: Redirect rule that is SSL aware

    You could capture the scheme by using the {SERVER_PROTOCOL} server variable in condition. This server variable contains the protocol together with version number (e.g. HTTP/1.1), so you would need to have a regex that captures only the protocol part. For example: <add input="{SERVER_PROTOCOL...
    Posted to Forum by ruslany on 08-05-2008, 2:33 AM
  • Re: URL Rewrite and Ajax.Net

    You can create a rule that matches the ashx extension and then stops processing: <rule name="Ignore ashx" patternSyntax="Wildcard" stopProcessing="True"> <match url="*.ashx"> <action Type="None"> </rule> Make sure this rule is...
    Posted to Forum by ruslany on 07-30-2008, 6:29 PM
  • Re: Hiding the .svc extension for WCF services

    try this: <rule name="Hide svc"> <match url="^photoalbum/([0-9a-zA-Z/]+)$"> <action type="Rewrite" url="photoalbum.svc/{R:1}"> </rule>
    Posted to Forum by ruslany on 07-25-2008, 12:45 PM
  • Re: wildcard host header

    Having read the other thread that you referenced, I think what you are trying to do is to configure several web sites like this: Website1 with host header binding as "*.example.com" Website2 with host header binding as "*.example.org" So that if request is for foo.example.com then...
    Posted to Forum by ruslany on 07-21-2008, 5:01 PM
Page 3 of 6 (55 items) < Previous 1 2 3 4 5 Next > ... Last »
Microsoft Communities