A configuration file (web.config) is used to manage various settings that define a website. The settings are stored in XML files that are separate from your application code. ... Generally a website contains a single Web.config file stored inside the application root directory.
Question:How to setup a redirect from non-www to www (http) for asp.net mvc application preferably using web.config rewrite rules?
Description:I have a website built on asp.net mvc deployed using the latest iis version, where I have URL Rewrite module installed. I have already tried some rewrite rules but found some wrong redirects so I have removed it, now need some urgent workaround as it is current affecting live site!
Posted by: Umer khan | Posted on: Jan 07, 2020
Question:how to setup a "website down for maintenance" page for any major updates in a asp.net (MVC) website?
Description:I have to deploy some major updates in my website build on asp.net MVC and I can't afford to let my site running during the deployment so I need to setup a page which can be displayed during deployment or the site's down time. preferable I need some settings in web.config or at IIS level so that I can easily remove that maintenance page immediately once the deployment process completed.
Posted by: Umer khan | Posted on: Jun 21, 2019
Question:how to implement Cache Busting technique of "File path versioning" or "File name versioning" for asp.net mvc site?
Description:I have studied about cache busting techniques and came to know that there are mainly three such techniques. -File name versioning (e.g. style.v2.css) -File path versioning (e.g. /v2/style.css) -Query strings (e.g. style.css?version=2) Currently I am using the query string for cache busting which is implemented by default in mvc's Bundling and Minification but the query string technique is causing performance issues, so I need to implement any of the other two technique. Need help in this regard!!!
Posted by: Umer khan | Posted on: Aug 24, 2018
Question:how to apply GZIP compression for static and dynamic resources in Asp.net website using web.config?
Posted by: Junaid Aziz | Posted on: Dec 06, 2017