How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

Force HTTPS using IIS

Google announced in their blog that it will start favoring websites that use HTTPS. Google ranking and increased security for your users is two major reasons why you should consider getting an SSL certificate and moving your website to HTTPS.

If you are using IIS you can use the below snippet in your web.config in order to redirect all HTTP requests to HTTPS.

For your convenience, in case you are not familiar how to use the snippet below, I have attached an image to illustrate how the rewrite rule will look using IIS’s interface, so if you are having trouble with the web.config, simply mirror the details in the image.

Please keep in mind that to use the snippet below you will need to have URL Rewrite module installed and enabled.



IIS Image
Redirect HTTP to HTTPS IIS

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *