I wonder if she could have kept her cool if it was a wasp?
Best posts made by LoremIpsum
-
RE: The Official Good Ideas Thread™
-
RE: Closed Poll: New project, git or svn
Oh come on guys, this is a serious question. Don't be so irresponsible.
You must be new here? Coding Help category is over there.
-
RE: All the Cool Kids use Ruby, and Node.js Is Bad Ass Rock Star Tech
Paging @Lorne_Kates for more podcast work.
-
Not sure which is TRWTF - Me or IIS web.config
Here's what I want to do: If anyone accesses our site using HTTP, redirect to HTTPS. If they access us using any host name other than
www.domain.co.uk
then redirect to that.I have the following rules in web.config on our live site:
<rule name="HTTPS Only" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="^localhost$" negate="true" /> <add input="{HTTP_HOST}" pattern="^(?:\d+\.){3}\d+$" negate="true" /> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://www.domain.co.uk/{R:1}" appendQueryString="true" /> </rule> <rule name="Canonical Host HTTPS" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="^(?:www|testing)\.domain\.co\.uk$" negate="true" /> <add input="{HTTP_HOST}" pattern="^localhost$" negate="true" /> <add input="{HTTP_HOST}" pattern="^(?:\d+\.){3}\d+$" negate="true" /> </conditions> <action type="Redirect" url="https://www.domain.co.uk/{R:1}" appendQueryString="true" /> </rule>
When I upload it, everything works as expected, both from the browser and through using Network Tools to check the headers. Then, some time later (around 10 minutes), accessing
https://www.domain.co.uk
results in an infinite redirect loop! Network Tools confirms this as well.I thought I had made a mistake and had made various changes over the last few days, each time believing I'd fixed it. Then it would break again. Today, just out of spite, I merely uploaded the exact same web.config to the live site without any changes, and it works! And then, after around 10 minutes, it stops working again! I can reproduce it every time!
Have I found a bug in IIS or am I dong it wrong? As a side-note, sessions last for hours, so I don't think that's anything to do with it.
-
Bad CSS on main website
custom.css line 66:
pre { font-family: Consolas, monospace; white-space:normal}
This is breaking every article that features code blocks.