HighDots Forums  

Don't want viewers to have to type in .htm to access awebpage

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Don't want viewers to have to type in .htm to access awebpage in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
alexy_han
 
Posts: n/a

Default Don't want viewers to have to type in .htm to access awebpage - 03-03-2009 , 03:47 PM






Hi all,

I'm putting together a webpage for a specific population. That population
will need to type into the URL field something like booboo.com/boo. So
there's a slash, and then there's the boo.

But when I upload the webpage and then try to find it via booboo.com/boo, it
doesn't exist. it only exists if I type in booboo.com/boo.htm.

I'm trying to keep it as simple as possible for the viewers, any way to change
this so they don't have to do that?

Thanks,

Alexy han


Reply With Quote
  #2  
Old   
John Waller
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 04:07 PM






booboo.com is your domain name.

boo is a folder

To see a web page at booboo.com/boo, put a file with a default file name in
the boo folder. The default file name depends on your server but try calling
it index.htm or default.htm

--
Regards

John Waller


Reply With Quote
  #3  
Old   
GPaul
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 04:33 PM



So John, what you are saying is that if I want to have the extensions
removed, what I have to do is create a sub-folder and then create an index
file for it? So if I have a site with 100 page, I would have 100
sub-folders with 100 index files? (Provided index is the method used by the
host).


"John Waller" <johnw (AT) REMOVETHISpinnacleweb (DOT) com.au> wrote

Quote:
booboo.com is your domain name.

boo is a folder

To see a web page at booboo.com/boo, put a file with a default file name
in the boo folder. The default file name depends on your server but try
calling it index.htm or default.htm

--
Regards

John Waller



Reply With Quote
  #4  
Old   
Sonjay
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 04:40 PM



Read up on "extensionless URLs" to find out how to run without any
extensions and without having to use individual subfolders for every file.

Google has lots of lots of results for that search -- you'll need to look
for info specific to your webserver platform to find out exactly how to do
it.

--
Sonjay


On 3/3/09 4:33 PM, "GPaul" wrote:

Quote:
So John, what you are saying is that if I want to have the extensions
removed, what I have to do is create a sub-folder and then create an index
file for it? So if I have a site with 100 page, I would have 100
sub-folders with 100 index files? (Provided index is the method used by the
host).


"John Waller" <johnw (AT) REMOVETHISpinnacleweb (DOT) com.au> wrote in message
news:gok66t$qbp$1 (AT) forums (DOT) macromedia.com...
booboo.com is your domain name.

boo is a folder

To see a web page at booboo.com/boo, put a file with a default file name
in the boo folder. The default file name depends on your server but try
calling it index.htm or default.htm

--
Regards

John Waller





Reply With Quote
  #5  
Old   
John Waller
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 05:02 PM



Quote:
So John, what you are saying is that if I want to have the extensions
removed, what I have to do is create a sub-folder and then create an index
file for it?
It's one option for a simple scenario.

Quote:
So if I have a site with 100 page, I would have 100 sub-folders with 100
index files? (Provided index is the method used by the host).
I wouldn't regard that as practical. An extension-less method would be
preferable in that scenario.


--
Regards

John Waller



Reply With Quote
  #6  
Old   
alexy_han
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to accessa webpage - 03-03-2009 , 05:04 PM



Hi all,

Thanks for responding so quickly!

I got my answer. I just have the one webpage, not 100 webpages, so I'm more
than happy with the advice.

I will try your recommendations out tomorrow and get back to you.

Thanks!!

Alexy


Reply With Quote
  #7  
Old   
GPaul
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 05:15 PM



Thanks John. I dont have a need for it, I was just trying to clarify...I
had always wondered how they did it (I guess just not enough to investigate
though).

Thanks

Gary
"John Waller" <johnw (AT) REMOVETHISpinnacleweb (DOT) com.au> wrote

Quote:
So John, what you are saying is that if I want to have the extensions
removed, what I have to do is create a sub-folder and then create an
index file for it?

It's one option for a simple scenario.

So if I have a site with 100 page, I would have 100 sub-folders with 100
index files? (Provided index is the method used by the host).

I wouldn't regard that as practical. An extension-less method would be
preferable in that scenario.


--
Regards

John Waller



Reply With Quote
  #8  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 08:40 PM



..oO(alexy_han)

Quote:
Thanks for responding so quickly!

I got my answer. I just have the one webpage, not 100 webpages, so I'm more
than happy with the advice.
Note that the directory method is not exactly the same as an "extension-
less" URL. Instead of a file extension you now need a trailing slash:

Before: http://example.com/page.html
After: http://example.com/page/

Micha


Reply With Quote
  #9  
Old   
John Waller
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-03-2009 , 10:28 PM



Instead of a file extension you now need a trailing slash:
Quote:
Before: http://example.com/page.html
After: http://example.com/page/
Don't browsers add the trailing slash automatically?

If you point to: http://example.com/page you get
http://example.com/page/index.htm?

--
Regards

John Waller



Reply With Quote
  #10  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: Don't want viewers to have to type in .htm to access a webpage - 03-04-2009 , 05:54 AM



On 03 Mar 2009 in macromedia.dreamweaver, John Waller wrote:

Quote:
Instead of a file extension you now need a trailing slash:
Before: http://example.com/page.html
After: http://example.com/page/

Don't browsers add the trailing slash automatically?

If you point to: http://example.com/page you get
http://example.com/page/index.htm?
Actually, no; it's done at the server level. You'll see something
that looks like this in your logs:

10.10.29.5 - - [04/Mar/2009:05:49:53 -0500] "GET /page HTTP/1.1" 301 315 "-"
10.10.29.5 - - [04/Mar/2009:05:49:53 -0500] "GET /page/ HTTP/1.1" 200 4325 "-"

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/contact.php


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.