IIS7 URL Redirection from root to sub directory [closed]

Here it is. Add this code to your web.config file: <system.webServer> <rewrite> <rules> <rule name=”Root Hit Redirect” stopProcessing=”true”> <match url=”^$” /> <action type=”Redirect” url=”/menu_1/MainScreen.aspx” /> </rule> </rules> </rewrite> </system.webServer> It will do 301 Permanent Redirect (URL will be changed in browser). If you want to have such “redirect” to be invisible (rewrite, internal redirect), then … Read more

Does VBA have any built in URL decoding?

Here’s a snippet I wrote years ago -markus Public Function URLDecode(sEncodedURL As String) As String On Error GoTo Catch Dim iLoop As Integer Dim sRtn As String Dim sTmp As String If Len(sEncodedURL) > 0 Then ‘ Loop through each char For iLoop = 1 To Len(sEncodedURL) sTmp = Mid(sEncodedURL, iLoop, 1) sTmp = Replace(sTmp, … Read more

URL Scheme for Phone Call

The official standard for providing a telephone number as a URI is here: http://www.ietf.org/rfc/rfc3966.txt It basically says use tel: as the prefix, and start the number with +[international dialling code] before the number itself. You can put non-numeric characters as separators (e.g. -) but they must be ignored. So a London (UK) number might be: … Read more