Subscribe to ITTreats.com - Microsoft Tech

Reducing JavaScript Code Using jsRender Templates in HTML5 Applications

Back in November of 2010 I wrote a post titled Reducing Code using jQuery Templates that demonstrated how jQuery Templates could be used to reduce significant amounts of JavaScript code. Although the topics and code discussed in that post are still valid and relevant in today’s applications, things have a changed some when it comes [...]

URL Rewrite city.domain.com to domain.com/city

An IIS 7.x URL Rewrite question that comes up often is how to redirect something.domain.com to domain.com/city. Here’s an example URL Rewrite rule to accomplish that: <rule name="CName to URL" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^(?!www)(.*)\.domain\.com$" /> </conditions> <action type="Redirect" url="http://domain.com/{C:1}/{R:0}" /> </rule> This will redirect http://anything_except_www.domain.com to http://domain.com/anything_except_www. It will also maintain [...]