I have a blog under URL www.mydomain.com/blog. However, is there a way where I only type www.mydomain.com and the browser redirects it to the blog URL? By the way, I'm using cPanel.
If you are using wordpress then here is a plugin which will do it for you: http://txfx.net/code/wordpress/enforce-www-preference/
You can do a meta refresh like: <META HTTP-EQUIV="REFRESH" CONTENT="2; URL=new.html"> Put this between the <head> and </head> and the 2 the seconds before redirect.