This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use whatever namespacing works for your project. | |
namespace YourSite.Web.Controllers.Api | |
{ | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Http; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- IIS URL Rewrite, this can be placed in the web.config --> | |
<!-- Handle Missing Media on Development Environment --> | |
<rule name="Handle missing media" stopProcessing="true"> | |
<match url="^media/(.*)" /> | |
<conditions logicalGrouping="MatchAll"> | |
<!-- Add Conditions, so local only --> | |
<add input="{REMOTE_HOST}" pattern="localhost" /> | |
<!-- Handle Files and Folders --> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |