Category Archives: Software Tips
Add www in-front of your domain using IIS
If you are using IIS you can use the snippet below in your web.config to add www. in-front of your domain if it is not already present.
Please keep in mind that to use the snippet below you will need to have URL Rewrite module installed and enabled.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Redirect to www" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_HOST}" pattern="^www\.<your domain>\.com$" negate="true" /> </conditions> <action type="Redirect" url="https://www.<your domain>.com/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration> |
Posted in Software Tips.
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer> </configuration> |
Posted in Software Tips.
Force HTTPS using .htaccess
As mentioned in a previous article, 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 an Apache web server you can use the snippet below in your .htaccess file in order to redirect all HTTP requests to HTTPS.
1 2 3 4 | RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
Posted in Software Tips.
How to uninstall Windows Phone SDK
Windows Phone SDK is included in Visual Studio 2013 now. If you are lucky enough you might have an entry for it in “Programs and Features” which will allow you to uninstall it. Sadly for me, this was not the case as there was no visible way to uninstall it from my system.
One solution that allowed me to uninstall Windows Phone SDK was to navigate to the packages folder that can be found in the Virtual Studio CD or .ISO file then look for the WindowsPhone81SDK folder, or something with a similar name in case the version is different.
Inside you will find some .msi files, simply right click on the files then select “Uninstall”. If Windows Phone SDK is installed on your computer the uninstallation process will begin.
Posted in Microsoft, Software Tips.
Tagged Microsoft, Windows Phone SDK
How to uninstall Microsoft Advertising SDK
Microsoft Advertising SDK is included in Visual Studio 2013 now. If you are lucky enough you might have an entry for it in “Programs and Features” which will allow you to uninstall it. Sadly for me, this was not the case as there was no visible way to uninstall it from my system.
One solution that allowed me to uninstall Microsoft Advertising SDK was to navigate to the packages folder that can be found in the Virtual Studio CD or .ISO file then look for the AdsSDK10 folder.
Inside you will find some .msi files, simply right click on the files then select “Uninstall”. If Microsoft Advertising SDK is installed on your computer the uninstallation process will begin.
Posted in Microsoft, Software Tips.
Tagged Microsoft, Microsoft Advertising SDK