Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You misspelled your link.

If you're on an Apache web server and all of your files end in .html then you can use a rewrite rule to redirect to the URL with a .html ending.

Code:
RewriteEngine On
# If request does not end in .html or /
RewriteCond %{REQUEST_FILENAME} !^(.*)(\.html|\/)$
# Add .html to the end of the request
RewriteRule ^(.*)$ $1.html

I wasn't able to test this, but the idea is sound.
 
You may be confusing a directory with a file. web servers are nothing but glorified file servers, and as such, you have to in some way specify a file.

A URL that doesn't specify the file is typically a directory that has an index file (a file with a particular name such as index.html, homepage.html, etc) or it is a file system link (ex: symbolic link in the world of UNIX/Linux) that points to a file. The actual name of the index file can be anything imaginable as long as it's specified as such in the web server configuration and there can be more than one index file name defined) or it's the target of a symlink.

Exampe: let's say a site uses "index.html" for index files.

When you go to _http://www.mysite.tld/, the server automatically looks for the index file "index.html" since no file name was included in the URL and that is the file served. If no file has an index name (index.html in this example), then the url _http://www.mystie.tld/ will either produce a directory listing or a "directory browsing not allowed" error, depending on the server/site config.
 
I don't know if this works as I've not tried it yet, but I read this advice in another forum a while back:

Have you ever tried removing page extensions with .htaccess?

With .htaccess you can have the extension removed for seo friendly urls

Create an .htaccess file in the site root and every page in that and all sub directories, your pages will display without the extension in the browser...

CODE:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^([^/]+)/$ $1.html

# Forces a trailing slash to be added
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]

That will make all pages like:

about.php
testimonials.php
contact.php

display as:

www.yoursite.com/about/
www.yoursite.com/testimonials/
www.yoursite.com/contact/

removing the lower section in the .htaccess file will remove the trailing slash...

I haven't tried this, but it may make things a lot easier to do instead of creating lots of folders and index files...

Let us know if you try and it and if it works ;)

/Doug
 
You may be confusing a directory with a file. web servers are nothing but glorified file servers, and as such, you have to in some way specify a file.

A URL that doesn't specify the file is typically a directory that has an index file (a file with a particular name such as index.html, homepage.html, etc) or it is a file system link (ex: symbolic link in the world of UNIX/Linux) that points to a file. The actual name of the index file can be anything imaginable as long as it's specified as such in the web server configuration and there can be more than one index file name defined) or it's the target of a symlink.

Exampe: let's say a site uses "index.html" for index files.

When you go to _http://www.mysite.tld/, the server automatically looks for the index file "index.html" since no file name was included in the URL and that is the file served. If no file has an index name (index.html in this example), then the url _http://www.mystie.tld/ will either produce a directory listing or a "directory browsing not allowed" error, depending on the server/site config.

What he said.
Either change lounge.html to index.html, or add lounge.html to the suffix list.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.