Questions tagged [web.config]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
141 views

IIS Error 500 triggered by web.config when adding ipSecurity entries

The size of my web.config file is comfortably below max, but when adding +- 200 entries like <add ipAddress="36.99.0.0" subnetMask="255.255.255.0" allowed="false"/>...
SKidd's user avatar
  • 35
0 votes
2 answers
43 views

Classic ASP wildcard for matching URLs, two ways I've seen, what are the differences?

Are these equally valid but with different syntax or is one "correct" and the other not? <match url="^.*" ignoreCase="false" /> vs <match url="*" /> ...
SKidd's user avatar
  • 35
1 vote
0 answers
31 views

How do I change the content on my website based on subdomains all pointing to the ASPX same server? [closed]

I have created multiple subdomains on my DNS (en.example.com / pt.example.com / ru.example.com), all related to languages and all pointed to the same IP address. I want to get the information from ...
RayNinja's user avatar
2 votes
1 answer
60 views

Does a new permanent rewrite rule supersede old permanent rewrite rule?

Ages ago we included a redirect in web.config to ensure that pages would rewrite to http://www.example.com/ if the user input, say, www.example.comor variants of it. Recently we changed the site so ...
SKidd's user avatar
  • 35
1 vote
0 answers
43 views

IIS7 Rewrite to block bad inbound linking not working

I want to block users to our site that are coming from links on seriously inappropriate website (e.g. warez, link bait sites, etc). I have tried this but doesn't work - I go to the blocked site, ...
SKidd's user avatar
  • 35
3 votes
1 answer
229 views

IIS7 rewrite rule triggers 404 rather than redirecting to new pagw

We recently replaced most of our default pages from default.htm to default.asp. Rewrite rules work fine if it's a sub-folder, e.g. example.com/help/default.asp where the default.htm was deleted. If ...
SKidd's user avatar
  • 35
2 votes
1 answer
266 views

How would you write an http to https redirect rule for web.config on IIS8 that would go directly to preferred domain with www.?

I have a site that we just setup with SSL and have a redirect rule set up in web.config. We also use the www. as the preferred domain. The problem I have is I want to skip the middle step in the ...
baumgardc's user avatar
1 vote
0 answers
2k views

Re-writing static website in angular 6. Will default 404 route hurt SEO?

Let us say our previous website was a WordPress application with links like example.com/about-us that served up static pages. Well now our application is an Angular 6 SPA being served in IIS through ...
Scott Clark's user avatar
3 votes
1 answer
2k views

HTTP to HTTPS redirect for a specific domain through web.config

I'm trying to do a HTTP to HTTPS redirect on a GoDaddy web hosting platform. I have the Windows hosting platform and I'm editing the web.config file. There are multiple domains under this hosting ...
Andrew's user avatar
  • 33