Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > fixing web address

Reply
Thread Tools

fixing web address

 
 
FH
Guest
Posts: n/a
 
      03-03-2004
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
 
 
 
 
Andrew Urquhart
Guest
Posts: n/a
 
      03-03-2004
FH 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 ).


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
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      03-03-2004
On Wed, 03 Mar 2004 00:03:38 GMT, "FH" <> declared
in alt.html:

> 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
 
Erik Harris
Guest
Posts: n/a
 
      03-03-2004
On Wed, 03 Mar 2004 00:03:38 GMT, "FH" <> 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.

--
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.
 
Reply With Quote
 
Cameron
Guest
Posts: n/a
 
      03-03-2004
Erik Harris wrote:
> On Wed, 03 Mar 2004 00:03:38 GMT, "FH" <> 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
 
Erik Harris
Guest
Posts: n/a
 
      03-03-2004
On Wed, 03 Mar 2004 01:00:47 +0000, Cameron <> wrote:

>Erik Harris wrote:
>> On Wed, 03 Mar 2004 00:03:38 GMT, "FH" <> 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


>Only index.html? not quite, ya got


I did specify "usually." The servers I've used have always required
index.html, except for one, which also accepted index.htm. If the servers
I've used do accept other filenames, they haven't been publicized.

The point is that if he doesn't want the filename displayed, he needs to
rename the file, and index.html is his best bet.

--
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.
 
Reply With Quote
 
FH
Guest
Posts: n/a
 
      03-03-2004
Erik;

i tried naming it managers/index.html

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

> 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
 
Cameron
Guest
Posts: n/a
 
      03-03-2004
FH wrote:
> 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
 
Erik Harris
Guest
Posts: n/a
 
      03-03-2004
On Wed, 03 Mar 2004 01:56:36 GMT, "FH" <> wrote:

>Erik;


>i tried naming it managers/index.html
>
>but it wouldn't allow it. i'm thinking the / symbol prevents it?


You'll need to create a managers directory first. Sorry, I should have been
more explicit about that notation. I was thinking in terms of command lines,
and was one step ahead of myself ("mkdir managers; mv managers.html
managers/index.html" would work in a *NIX type environment, for example).

How exactly you do that will depend on what interface you're using (a command
line ftp, a GUI ftp, Windows Explorer and a locally-hosted web server, etc).
However you do it, create a "managers" directory, and put the file in there,
calling it index.html. Then point your web browser to
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).

--
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.
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      03-03-2004
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?

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
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web access to this NG needs fixing =?Utf-8?B?Q2FybG9z?= Windows 64bit 6 09-07-2007 09:52 PM
Pass a Web Address and return a File System Address =?Utf-8?B?QW5nZWw=?= ASP .Net 2 09-20-2005 11:35 PM
customizing and fixing web form window size ? Saket Mundra ASP .Net Web Controls 0 04-22-2005 02:00 AM
Customizing & fixing Web form window size Saket Mundra ASP .Net Web Controls 0 04-22-2005 01:59 AM
Internet Explorer Address Bar Displaying - 'Enter Keyword or Web Address here' Luv-N-Life Computer Support 1 08-28-2003 06:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57