#web-config
Web.config
- posts
- 9
- snippets
- 0
- stories
- 1
- videos
- 0
- tools
- 0
git log -- web-config
- C# - Get Web.Config Connection String in a Class Library
If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager
- IIS - Disable CORS
Disable CORS for IIS 10 website by allowing all origins in two simple steps.
- Azure Web App - Missing MIME types
If you are seeing "404 Not Found" for .woff, .woff2 or for .json files even if they exist on your azure web app, this is the post for you.
- Hunting security bugs in an old web application
In this post, I am sharing one of my security bug hunting experience in an older ASP.NET web form project.
- Redirect HTTPS requests to HTTP using IIS Rewrite rule in Web.Config
Use the provided rewrite rule to redirect HTTPS requests to HTTP.
- Redirect HTTP to HTTPS using Web.Config in IIS
Use IIS Rewrite rule to redirect all HTTP request to HTTPS.
- Redirect WWW to Non-WWW using Web.Config in IIS
Use IIS rewrite rule to redirect (301) all www requests to non-www.
- Inserting Rewrite rule in Release Config
Adding rewrite rule in release config is handy so that it will not affect during Debug mode.
- Redirect non-www urls to www urls
When considering SEO, either you have to stick with www versioned url or non-www URLs. Having both accessible for a domain is a bad practice.