You can redirect a specific file by right clicking the file in IIS, click "properties" and then select the radio button "A redirection to a URL. This will allow you to redirect individual pages. If contact.aspx doesn't exist in the directory anymore, just create a file named contact.aspx with notepad and then setup your redirect. Be sure to check the box that says "a permanent redirection..."
Whenever I try to redirect is through the IIS control panel by right-clicking>properties>redirect it is creating an infinite loop.
Not sure what you mean by this... Could you elaborate please?
I have fixed the first problem, now let me share with you all how I did it:
I created a site in the IIS with domain.com as the host name and then 301 redirected it [by right click > properties] to www.domain.com$S I was missing the $S part for which requests for domain.com/contact.aspx was getting redirected to www.domain.com. The redirect wasn't passing any suffixes. So I fixed that and it's working fine. Thanks again!
Now the BIG problem (for me at least)
How do I redirect www.domain.com/default.aspx to www.domain.com/
I have tried numerous ways of doing this, but it just doesn't work. I would be very grateful if you all can guide me through this.