Forum Moderators: phranque

Message Too Old, No Replies

Technology Hiding

Can't make it work

         

neophyte

2:29 pm on Mar 17, 2005 (gmt 0)

10+ Year Member



Hello All -

There was a great 40+ thread post a few months back on Designing Low Maintenance Websites:-

[webmasterworld.com...]

One of the topics involved creating a directory structure that would hide the technology you use, i.e.

www.example.com/latest news/

vs.

www.example.com/latest news/the_news.html

I was intrigued by this and have tried it on a site I'm developing, but am running into a wall. Here's a sample href from the site I'm developing locally:

<a href="/latest/">Latest News</a>

(inside the "/latest/" directory is a single file: index.htm)

When I test the link on my local, the browser shows the index.htm icon but doesn't load the file like I thought it would and/or should.

Is this because I'm trying to test this locally? Would this work once I upload all directories to my server? Am I doing something wrong? I'm hand-coding using Dreamweaver MX - is there some secret setting that I'm unaware of which I need to set?

I have seen the source of a bunch of sites that use this exact href syntax, but for some reason it's not working for me.

Any suggestions/guidance greatly appreciated.

Neophyte

[edited by: trillianjedi at 2:33 pm (utc) on Mar. 17, 2005]
[edit reason] Added link to referenced thread... [/edit]

benihana

2:39 pm on Mar 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



are you running a server locally?

if not, then your machine doesnt know to serve index.html by default, and therefore just shows the file list.

should work when you upload.

ben

saoi_jp

9:12 am on Mar 18, 2005 (gmt 0)

10+ Year Member



You can try index.html instead.

Or, if you have access to a file called ".htaccess", you can add this line:

DirectoryIndex index.htm