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
  #21  
Old   
GPaul
 
Posts: n/a

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






Alexy

The ../ refers to the path to that file.

http://www.lmgtfy.com/?q=relative+path


Since you have created a sub-folder to the root folder to house your htm
file, the
"alexy_han" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Another related issue.

This is related to the original question of boo.com/hello, wherein I put
the
"hello" webpage into its own folder, then I don't have to require the
viewer to
type in .htm in order for the "hello" webpage to show up properly.

I found that I had to type in the full URL for the menu options, e.g.,
http://www.boo.com/menu_option_1, etc., in order for the menu options to
work.

Because otherwise they will change automatically to
http://www.boo.com/hello/menu_option_1.htm, which doesn't exist.

In other words, the menu options assume the webpages are in the same
folder as
the "hello" webpage.

I'm using the full URL for all menu options for this one webpage, but
would
like to hear from any of you if you know of a better way to manage this.

Thanks!

Alexy




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

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






Hi there,

Thanks, GPaul, for responding so quickly.

The relative versus absolute issue looks familiar to me, I'll review it
tomorrow morning (it's now 8:30 pm my time).

Also, I'm wondering, can you finish your sentence? :-)

"Since you have created a sub-folder to the root folder to house your htm
file, the ..."

The what?

Thanks,

Alexy Han


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

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



I actually had an explanation of paths and root folders started, looked back
on it and thought it was confusing, so I went the cheap route and posted the
let me google that for you link...

Sorry


"alexy_han" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi there,

Thanks, GPaul, for responding so quickly.

The relative versus absolute issue looks familiar to me, I'll review it
tomorrow morning (it's now 8:30 pm my time).

Also, I'm wondering, can you finish your sentence? :-)

"Since you have created a sub-folder to the root folder to house your htm
file, the ..."

The what?

Thanks,

Alexy Han




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

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



Hi!

Thanks for your help. I've been reviewing absolute versus relative paths.
Interesting.

Absolute paths mostly is about using the full URL, e.g.,
http://www.boo.com/hello.htm.

Relative paths are more like ../hello.htm.

Not sure which one I should go with, and also not sure how this relates to the
trailing slash that seems to be an issue here. So, is this more for the
webpage that's in its own folder to avoid the reader having to add in the .htm?
In which case I should go with full URLs for all menu options for that webpage?

Basically, my two questions are: can anyone could let me know

1) What to do with the menu options (set to absolute paths?) for the webpage
that's in its own folder to avoid the reader having to add the .htm when typing
in the address

2) Whether the coding I have "works" with respect to the trailing slash? The
coding typically looks like this: a href="contact_me.htm">contact me</a>.

Thanks!! Hope to hear from you soon!

Alexy


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

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



I dont really use the extensionless method, I jumped in to see how it was
done.

However, to make life easier for you, when you are adding a link or file,
put your curser where the link or file is to go, right click with your
mouse, go to Code Hints | URL Browser, click, a browse option will pop up at
your curser which you can find your file. DW will then add the correct path
for you.

If the file you are adding is in the same folder as the file you are
working on, it willnot have / or./ or../ or even../../, if you go one file
up, as in an images folder it will be images/filename.extension...

Hope that helps.

gary

"alexy_han" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi!

Thanks for your help. I've been reviewing absolute versus relative paths.
Interesting.

Absolute paths mostly is about using the full URL, e.g.,
http://www.boo.com/hello.htm.

Relative paths are more like ../hello.htm.

Not sure which one I should go with, and also not sure how this relates to
the
trailing slash that seems to be an issue here. So, is this more for the
webpage that's in its own folder to avoid the reader having to add in the
.htm?
In which case I should go with full URLs for all menu options for that
webpage?

Basically, my two questions are: can anyone could let me know

1) What to do with the menu options (set to absolute paths?) for the
webpage
that's in its own folder to avoid the reader having to add the .htm when
typing
in the address

2) Whether the coding I have "works" with respect to the trailing slash?
The
coding typically looks like this: a href="contact_me.htm">contact me</a>.

Thanks!! Hope to hear from you soon!

Alexy




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

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



Thanks, GPaul.

You and I must be using different versions of DW. Mine is admittedly a few
years old. LOL.

I checked and don't have these things you mentioned, e.g., Code Hints, etc.,
however I checked and I think it's relative rather than absolute except for
that one "hello" file in its own folder.

So I basically do the same thing you suggest, I think--that is, I click on the
file and attach, and DW does the rest. It typically looks like fees.htm etc as
I attach.

Thanks re: the trailing slash, it sounds like I don't have to concern myself
with it.

I have the feeling it takes longer if I use absolute or full URLs for the menu
options for that one page in its own folder, and I'm open to suggestions.

Alexy


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

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



Hi GPaul et al,

Ok. I set up a different template for that single file that's in its own
folder, than for the rest of the webpage. Same template, but different menu
options.

That's because these menu options didn't work because DW automatically set the
webpages to be relative, which doesn't work for that file in its own folder.

However when I do so, whether it's ../fees.htm or the full URL
(http://www.boo.com/fees.htm), there's this disappearing of the first webpage,
to be replaced by the other webpage

It's not seamless. And it needs to be seamless.

I feel like I'm repeating myself because either I'm not understanding some
information here, or I'm not being clear in what I'm trying to acheive.
Hopefully this is clear ...

Suggestions?


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

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



If you are having a template create absolute paths to your files, you can do
one of two things.
1. Set the path to root instead of document when your dialog box opens
2. If you already have the child page and the path is absolute, go to Modify
Quote:
Templates | Apply Template... (provided your version has that.) It should
reset the links.

Gary

"alexy_han" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi GPaul et al,

Ok. I set up a different template for that single file that's in its own
folder, than for the rest of the webpage. Same template, but different
menu
options.

That's because these menu options didn't work because DW automatically set
the
webpages to be relative, which doesn't work for that file in its own
folder.

However when I do so, whether it's ../fees.htm or the full URL
(http://www.boo.com/fees.htm), there's this disappearing of the first
webpage,
to be replaced by the other webpage

It's not seamless. And it needs to be seamless.

I feel like I'm repeating myself because either I'm not understanding some
information here, or I'm not being clear in what I'm trying to acheive.
Hopefully this is clear ...

Suggestions?




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.