I have two addresses pointing to my site and URL rewrite setup to rewrite one of them to a directory. The rewrite rule seems to be rewriting things just fine but some content does not get through properly sometimes. For example CSS will not load. Giving an error code of 500 (internal server error). You can "force" it to load by refreshing with Ctrl-F5 several times, but after clearing the browser history you get the same behavior again. Here is the rewrite rule: <rewrite> <rules> <clear /> <rule name="raytech-rewrite" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="^(www\.)?bkray\.com$" /> <add input="{PATH_INFO}" pattern="^/raytech($|/)" negate="true" /> </conditions> <action type="Rewrite" url="/raytech/{R:0}" logRewrittenUrl="true" /> </rule> </rules> </rewrite> any help would be appreciated...
Everytime I hit bkray.com the background is red so it looks like the css is loading. I tried this in both firefox and IE. The redirect from what I can see is working as raytechwv.com pulls up your actual site instead of the test.
No it is still not working consistently. I have also added a test.htm and test.html which do not load to further illustrate the problem which is not just limited to CSS. Also turning on the Failed Request Tracing Rules produces logs showing that the error is an internal server error occurring in IsapiFilterModule. Looks like C:\Program Files\Applicure\dotDefender for IIS\lib\i386\dd_filt_response.dll.
DotDefender is a Application Firewall and I've disabled the dotdefender on your site. Let me know if this fixes the problem.
THANK YOU! I had been wrestling with this for weeks. Then all of sudden it started working yesterday. I've been undoing changes all day to try to figure out what had fixed it. Seems to be working great now. Thank you very much Bruce.