# Challenge 2: help a fellow developer

**URL:** <https://discourse.aurelia.io/t/challenge-2-help-a-fellow-developer/915>\
**Category:** Help Requests\
**Created:** [March 16, 2018, 11:25pm UTC](https://discourse.aurelia.io/t/challenge-2-help-a-fellow-developer/915 "2018-03-16T23:25:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [March 16, 2018, 11:25pm UTC](https://discourse.aurelia.io/t/challenge-2-help-a-fellow-developer/915/1 "2018-03-16T23:25:20Z")

</div>

can someone help this guy?

> <https://github.com/aurelia-contrib/aurelia-open-id-connect/issues/52>

summary:  
after updating to webpack 4 and bumping up dependencies all over the place

something (openid connect + pushstate + iis) stopped working  
And I can’t even start asking “the right” questions.

please (-:

---

<div class="post-metadata">

**Author:** ![sreddim](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sreddim/32/904_2.png) [@sreddim](https://discourse.aurelia.io/u/sreddim)\
**Post date:** [July 3, 2018, 1:08pm UTC](https://discourse.aurelia.io/t/challenge-2-help-a-fellow-developer/915/2 "2018-07-03T13:08:00Z")

</div>

Hi, This is because it is trying to read static files.

Use url rewrite to set the redirect paths.

If you have Url rewrite module installed then add this web.config file in the root level of application on production.

If not first install Url rewrite module from microsoft and then add this web.config file.  
Once you add the web.config as shown below, the Urlrewrite will pick up the rules set up from the web.config and wont look for static files.

```
<configuration>
    <system.webServer>
 <!-- this is needed when iis is unable to read json files because of mime type missing -->
<!-- <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent> -->
   <rewrite>
             <rules>
                 <remove name="redirect all requests" />
                 <rule name="redirect all requests" stopProcessing="true">
                     <match url="^(.*)$" ignoreCase="false" />
                     <conditions logicalGrouping="MatchAll">
                         <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />	
			 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />		 
                     </conditions>
                     <action type="Rewrite" url="/" appendQueryString="true" />
                 </rule>
             </rules>
         </rewrite> 
    </system.webServer>
</configuration>

```

Hope this helps.
