How to fix USB stick issue when windows is not able to access it.

Open a Command Window (cmd) “Run As Administrator”
Enter diskpart
Your will get DISKPART> Prompt.
Enter LIST DISK
You will see all the disks by number 0,1,2….
Enter SELECT DISK X (where x is your USB drive)
Enter CLEAN
Enter CREATE PART PRIMARY
Enter SELECT PART 1
Enter ACTIVE
Enter format fs=fat32 label=”Test”
It will take some time based on your disk size. So please wait.

After formatting the drive will be ready to use.

IIS7/8 URL Rewrite ? rewriting non-www to www

In order to Redirect non-www to www on your website, manually edit the web.config file of site and add the following rewrite rule:

<rewrite>
<rules>
<rule name="Redirect example.com to www" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example.com$" />
</conditions>
<action type="Redirect" url="http://www.example.com/{R:0}" />
</rule>
</rules>
</rewrite>