Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to access a site to ony type the folde name (not .htm)

Reply
Thread Tools

How to access a site to ony type the folde name (not .htm)

 
 
Ole Svensen
Guest
Posts: n/a
 
      12-16-2003
Hi

I want to make a website and want the user to only type the folder name to
access the site.
Normaly I have to make this:

www.test.com/test/test.htm

But I want the user to access this site to type: www.test.com/test

Any tips?


BR
Ole


 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      12-17-2003
in post <news:2QTDb.6715$>
Ole Svensen said:

> I want to make a website and want the user to only type the folder name to
> access the site.
> Normaly I have to make this:
>
> www.test.com/test/test.htm
>
> But I want the user to access this site to type: www.test.com/test


(assumes apache) stick the below in a .htaccess file[1] for the
directory you want the directives to apply to. child directories inherit
the directives so if you stick it in your root the directives will apply
to all of your site.

DirectoryIndex test.htm

[1] a .htaccess file is a plain text file named as shown. if you create
the file with notepad save the file with quotes to prevent notepad from
adding a .txt extension i.e: ".htaccess"


--
brucie
17/December/2003 05:49:21 pm kilo
 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      12-17-2003
"Ole Svensen" <> wrote in message news:<2QTDb.6715$>...
> Hi
>
> I want to make a website and want the user to only type the folder name to
> access the site.
> Normaly I have to make this:
>
> www.test.com/test/test.htm
>
> But I want the user to access this site to type: www.test.com/test
>
> Any tips?


Set the default document/document index value in your server config.
accordingly. RTFM.

--
Hywel
 
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
property short cut for read-ony instance access, but.... Gene Angelo Ruby 1 09-15-2010 03:13 PM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
type* name vs. type *name Sergei Gnezdov C Programming 5 03-29-2005 06:04 PM
difference between persistet DLL(ASP.NET Temp Files) and Bin Folde =?Utf-8?B?U2F0aXNo?= ASP .Net 4 02-08-2005 08:00 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 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