# website building question, correcting links

**URL:** https://boards.straightdope.com/t/website-building-question-correcting-links/481874
**Category:** Factual Questions
**Created:** [January 18, 2009, 7:16pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874 "2009-01-18T19:16:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Yzingerr](https://avatars.discourse-cdn.com/v4/letter/y/f17d59/32.png) [@Yzingerr](https://boards.straightdope.com/u/Yzingerr)
#### Post date: [January 18, 2009, 7:16pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874/1 "2009-01-18T19:16:05Z")

</div>

How do i make the links i created on the homepage go directly where they need to go?  
i.e. I have a “contact tab” on the homepage, but when clicked it goes to the:  
Index of /contact  
Parent Directory  
Contact.htm  
cgi-bin/  
images/  
If you click contact.htm then it will go to the "contact page i created.  
Im sure it is as simple as renaming too!?!  
Thanks again guys!

---

<div class="post-metadata">

### Author: ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)
#### Post date: [January 18, 2009, 7:22pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874/2 "2009-01-18T19:22:45Z")

</div>

It sounds as though you have the link URL set as

[http://www.mywebsite.com/contact](http://www.mywebsite.com/contact)

when it should be

[http://www.mywebsite.com/contact.htm](http://www.mywebsite.com/contact.htm)

---

<div class="post-metadata">

### Author: ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)
#### Post date: [January 18, 2009, 7:35pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874/3 "2009-01-18T19:35:57Z")

</div>

Actually, it looks like you have a subfolder called /contact which contains your contact page and associated graphics. In that case, the URL should be

[http://www.mywebsite.com/contact/contact.htm](http://www.mywebsite.com/contact/contact.htm)

Although, you’re probably better off putting it into the root directory, instead. Unless you plan for your website to have a high level of organizational complexity, it’ll be simpler to link to stuff that way.

One tip: if you don’t want folks being able to see your directory structure and file list, every folder should contain, at minimum, a blank index.html page. That way, if they navigate to a folder you don’t intend for public access, they’ll only see the blank index page, not the directory tree.

---

<div class="post-metadata">

### Author: ![Yzingerr](https://avatars.discourse-cdn.com/v4/letter/y/f17d59/32.png) [@Yzingerr](https://boards.straightdope.com/u/Yzingerr)
#### Post date: [January 18, 2009, 7:50pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874/4 "2009-01-18T19:50:45Z")

</div>

> [@Q.E.D](#):
>
> Actually, it looks like you have a subfolder called /contact which contains your contact page and associated graphics. In that case, the URL should be
> 
> [http://www.mywebsite.com/contact/contact.htm](http://www.mywebsite.com/contact/contact.htm)
> 
> Although, you’re probably better off putting it into the root directory, instead. Unless you plan for your website to have a high level of organizational complexity, it’ll be simpler to link to stuff that way.
> 
> One tip: if you don’t want folks being able to see your directory structure and file list, every folder should contain, at minimum, a blank index.html page. That way, if they navigate to a folder you don’t intend for public access, they’ll only see the blank index page, not the directory tree.

You are correct, i do have a subfolder called /contact which contains your contact page and associated graphics.  
Please elaborate on the root directory process as it seems like the way id like to go. I am unfamiliar with that as hostpapa has a drag and drop set-up for files.

Thanks!

---

<div class="post-metadata">

### Author: ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)
#### Post date: [January 18, 2009, 7:53pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874/5 "2009-01-18T19:53:30Z")

</div>

The root directory is just the top-level directory. The directory that the subfolder /contact is in, is the root directory. Just move contact.htm to there.

---

<div class="post-metadata">

### Author: ![Yzingerr](https://avatars.discourse-cdn.com/v4/letter/y/f17d59/32.png) [@Yzingerr](https://boards.straightdope.com/u/Yzingerr)
#### Post date: [January 18, 2009, 7:54pm UTC](https://boards.straightdope.com/t/website-building-question-correcting-links/481874/6 "2009-01-18T19:54:40Z")

</div>

ok, thanks!
