Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web hosting account with godaddy. How do you make it so entering just the domain name will take you to the home page? For example www.coolwebsite.com vs www.coolwebsite.com/page1.

share|improve this question

migrated from stackoverflow.com Feb 13 '12 at 4:26

This question came from our site for professional and enthusiast programmers.

You need to have index.html or index.htm in the root of your account. I believe you can also have index.php and default.htm.

You might want to look at - http://support.godaddy.com/help/60/what-file-displays-when-someone-browses-to-my-domain-name This page has a link to the order of precedence for the various filenames.

share|improve this answer

Depend on which web server you use, you can do server side redirect (search for "web server name" + redirect). Or try the following meta tag to do client side redirect:

<meta http-equiv="refresh" content="0; url=/page1">

Put the below code to your index.html, which is the file that is served when you access your domain without path.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.