I thought that both types would bring you to the root folder, but apparently, they work differently, once you do a URL rewrite.
For instance, I normally use / which I know will bring you to the root folder and it does when a URL has been rewritten.
When someone else tried to use ~/ after a URL has been rewritten, then the path fails to find the file. Why is that?
/ will take you back to the root of your website.
~/ will take you to the home folder of your application on the website.
If your application is in a folder called myApp, for example, so the URL looks like this
and in your application you use ~/Scripts/jquery.js then the path referenced will be
whereas just using / would send you all the way back to the root of the website