Month: February 2020
Apache rewrite rule to redirect non-www to www with Let’s Encrypt exception
If you would like to redirect your non-www url to www and also add Let’s Encrypt path (/.well-known/acme-challenge/) to exception, here are the rules Add following to your non-ssl Virtual Host Add following to your ssl enabled Virtual Host
How to run a single instance of WinForm application?
Following tutorial provides an example to run a single instance of WinForms application using Mutex. There are multiple ways to achieve the same result but this is kind of neat solution in my opinion. Add following SingleInstance class in your project. Here is how to use it in Program.cs > Main function
|