See if the IF statement is working by placing a MessageBox with the URL.ToString() value in it. Or put a break inside of it. Perhaps the URL isn't exactly what you think it is. It could be
http://www.runescape.com/a/?a=2 and you are looking for an exact match. A better idea would be to search the URL for the runescape.com string.