HighDots Forums  

fixing web address

alt.html alt.html


Discuss fixing web address in the alt.html forum.



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

Default fixing web address - 03-02-2004 , 07:03 PM






http://www.fabriclean.biz/managers.html

how do i fix my site so that it doesn't show the .html at the end of the web
site address? what am i doing wrong? ( i'm doing html manually ).


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.587 / Virus Database: 371 - Release Date: 2/12/04



Reply With Quote
  #2  
Old   
Andrew Urquhart
 
Posts: n/a

Default Re: fixing web address - 03-02-2004 , 07:16 PM






FH wrote:
Quote:
http://www.fabriclean.biz/managers.html

how do i fix my site so that it doesn't show the .html at the end of
the web site address? what am i doing wrong? ( i'm doing html
manually ).
I take it you mean you want URLs of the form:

http://www.fabriclean.biz/managers/

In which case create the managers directory then work out what the
supported default documents are for the web server you're using. Almost
certainly one of these is "index.html", in which case take file
"managers.html" rename it to "index.html" and put it in your new folder.

If you didn't mean the above, then you've lost me as nothing is broken.
--
Andrew Urquhart
Reply: http://www.andrewu.co.uk/about/conta...Re%3A+alt.html




Reply With Quote
  #3  
Old   
Mark Parnell
 
Posts: n/a

Default Re: fixing web address - 03-02-2004 , 07:36 PM



On Wed, 03 Mar 2004 00:03:38 GMT, "FH" <nowaydude (AT) hotmail (DOT) com> declared
in alt.html:

Quote:
http://www.fabriclean.biz/managers.html

how do i fix my site so that it doesn't show the .html at the end of the web
site address? what am i doing wrong? ( i'm doing html manually ).
If your web server is using Apache, you can do it using MultiViews
(assuming your host allows it) - just set all your links to go to
http://www.fabriclean.biz/managers and the server will automatically
send the .html page.

Then if you ever rename the page to e.g. managers.php, you don't have to
change your links. :-)

--
Mark Parnell
http://www.clarkecomputers.com.au


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

Default Re: fixing web address - 03-02-2004 , 08:00 PM



Erik Harris wrote:
Quote:
On Wed, 03 Mar 2004 00:03:38 GMT, "FH" <nowaydude (AT) hotmail (DOT) com> wrote:


http://www.fabriclean.biz/managers.html

how do i fix my site so that it doesn't show the .html at the end of the web
site address? what am i doing wrong? ( i'm doing html manually ).


Usually, a server will only hide the filename of an "index.html" file in a
given directory. So "index.html" would be rendered when someone goes to
"www.fabriclean.biz". If you want them to go to www.fabriclean.biz/managers/
then you need to rename managers.html to managers/index.html

If that's not what you're asking, you've lost me.

Only index.html? not quite, ya got

index.htm, default.htm, default.asp, index.asp, index.php,
index.shtml...need I continue, granted some of these depend on the
features on the server but most servers use more than just index.html

~Cameron


Reply With Quote
  #5  
Old   
FH
 
Posts: n/a

Default Re: fixing web address - 03-02-2004 , 08:56 PM



Erik;

i tried naming it managers/index.html

but it wouldn't allow it. i'm thinking the / symbol prevents it?

Quote:
Usually, a server will only hide the filename of an "index.html" file in a
given directory. So "index.html" would be rendered when someone goes to
"www.fabriclean.biz". If you want them to go to
www.fabriclean.biz/managers/
then you need to rename managers.html to managers/index.html

If that's not what you're asking, you've lost me.

--
Erik Harris n$wsr$ader@$harrishom$.com
AIM: KngFuJoe http://www.eharrishome.com
Chinese-Indonesian MA Club http://www.eharrishome.com/cimac/

The above email address is obfuscated to try to prevent SPAM.
Replace each dollar sign with an "e" for the correct address.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.587 / Virus Database: 371 - Release Date: 2/12/04




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

Default Re: fixing web address - 03-02-2004 , 09:01 PM



FH wrote:
Quote:
Erik;

i tried naming it managers/index.html

but it wouldn't allow it. i'm thinking the / symbol prevents it?

snip
You don't name the file managers/index.html, you rename managers.html to
index.html, then you create a folder/directory called managers and put
index.html into it.


~Cameron


Reply With Quote
  #7  
Old   
Toby A Inkster
 
Posts: n/a

Default Re: fixing web address - 03-03-2004 , 03:11 AM



Erik Harris wrote:

Quote:
http://www.fabriclean.biz/managers/ (chances are, the tailing "/" won't be
necessary, but that depends on your web server. I believe I have seen some
that require it).
They *all* require it. Why?

Consider that "managers/index.html" loads an image like this:

<img src="phb.gif" alt="My Manager">

If your URL is "http://www.fabriclean.biz/managers/", then the browser
will try to load the image from "http://www.fabriclean.biz/managers/phb.gif",
but if the URL is missing the slash, then the browser will try to load the
image from "http://www.fabriclean.biz/phb.gif". So you see the problem if
the slash is missing? It *completely* changes the object of relative URLs.

For this reason, many web servers are configured to *redirect* requests to
directories without a slash towards their slashy counterparts.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132



Reply With Quote
  #8  
Old   
Toby A Inkster
 
Posts: n/a

Default Re: fixing web address - 03-04-2004 , 02:30 AM



Erik Harris wrote:

Quote:
On Wed, 03 Mar 2004 08:11:29 +0000, Toby A Inkster
UseTheAddressInMySig (AT) deadspam (DOT) com> wrote:

Erik Harris wrote:

http://www.fabriclean.biz/managers/ (chances are, the tailing "/" won't be
necessary, but that depends on your web server. I believe I have seen some
that require it).

They *all* require it. Why?

No, they don't. Regardless of your "why", try going to
http://www.eharrishome.com/cimac and http://www.eharrishome.com/cimac/

Both go to the exact same place. Both redirect you to
http://www.eharrishome.com/cimac/index.html (actually, the domain redirects
you to my homepage on my ISP's server, and the /cimac redirects you to
/cimac/index.html).
http://www.eharrishome.com/cimac/index.html
http://www.eharrishome.com/cimac/
http://www.eharrishome.com/cimac

All 3 of these are different places. They could all contain potentially
different pages. In this particular case, they all contain HTTP redirects
to various other places, so this isn't the best example.

Instead, how about:

http://www.goddamn.co.uk/tobyink/scr...rls/index.html
http://www.goddamn.co.uk/tobyink/scratch/urls/
http://www.goddamn.co.uk/tobyink/scratch/urls

All are different pages and contain different content.

Quote:
Are you being contrary just for the sake of being contrary, or are you trying
to show off your "superior intelligence" by proving me wrong and then
finishing up with a sentence telling me I'm actually right? ;-)
I'm being contrary to educate people into using the correct URLs, because
as my example above shows, if you miss off slash characters from the end
of directory names you could be linking to an entirely different document.

And even if the server was configured to redirect the slashless URL to the
slashy one (which most are), you've just caused the browser and extra
round-trip to the server for the redirect and wasted the visitor's and
your own bandwidth.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132



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 - 2008, Jelsoft Enterprises Ltd.