Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
dumb question - easily answered I'm sure
Old 03-23-2008, 08:23 AM dumb question - easily answered I'm sure
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
Ok...why do the pages of some websites have no .html at the end? How is that done?

Example:

http://www.usacycling.org/coaches/

Also, this site uses PHP. Why? I'm not quite sure I understand exactly what PHP is used for in this case. Is it so someone other than the designer can edit content?

Last edited by missingtime; 03-23-2008 at 08:26 AM..
missingtime is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-23-2008, 09:06 AM Re: dumb question - easily answered I'm sure
mork29's Avatar
Extreme Talker

Posts: 242
Name: Keith Yelnick
Trades: 0
a website will automatically load the "index" file in a directory if you link somebody to a directory. There is an order of presedence set in the webserver that sets what the index file should be named. Usually index.html index.htm index.php index.asp etc.... It could really be anything, and usually mutliple file names are given.

Most of the content on the page you gave is probably dynamically generated from information from a database or something like that. Read about Content Management Systems (CMS) for more detail.
mork29 is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 09:42 AM Re: dumb question - easily answered I'm sure
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
With .htaccess you can change the default page of a directory, but that isn't your question.

Like missingtime stated, it will by default look for the index file of that directory. Some servers probably don't allow index's with extensions other than htm or html (like my old server).

But, to answer your question, make a new file... call it index.html. then upload it, and done.
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 10:46 AM Re: dumb question - easily answered I'm sure
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
So what you're saying is that I make, let's say, a folder, title it "shoes" and then put a file in it called "index.html". The URL would then be:

www.mysite/shoes

instead of...

www.mysite/shoes.html

Am I understanding this correctly?
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 11:03 AM Re: dumb question - easily answered I'm sure
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
Ok, I tried that and all I got was this as the URL:

www.mysite/folder/subfolder/index.html

It didn't get rid of the index.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 11:03 AM Re: dumb question - easily answered I'm sure
Defies a Status

Posts: 1,605
Trades: 0
You have the concept. It would be www mysite.com/shoes/

This would be true whether the index file ended in html, htm or php.

Edit: strange it works that way on both my server packages.
__________________
Colbyt

Please login or register to view this content. Registration is FREE

Last edited by colbyt; 03-23-2008 at 11:05 AM..
colbyt is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 11:05 AM Re: dumb question - easily answered I'm sure
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
Quote:
Originally Posted by colbyt View Post
You have the concept. It would be www mysite.com/shoes/

This would be true whetehr the index file ended in html, htm or php.
Any idea why it didn't work for me?
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 11:08 AM Re: dumb question - easily answered I'm sure
Defies a Status

Posts: 1,605
Trades: 0
No. I really don't. I don't think I have seen that before.

If you type in the full URL with the index it will show. But it should not show if you just stop typing with shoes/
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 11:11 AM Re: dumb question - easily answered I'm sure
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
Quote:
Originally Posted by colbyt View Post
No. I really don't. I don't think I have seen that before.

If you type in the full URL with the index it will show. But it should not show if you just stop typing with shoes/
I should clarify how it's working exactly:

When I type the URL in without the .html at the end, it works. I don't see the .html there.

However, when I click on a link to take me to that page..the page loads with the .html.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 11:13 AM Re: dumb question - easily answered I'm sure
missingtime's Avatar
Skilled Talker

Posts: 83
Location: Athens, Greece
Trades: 0
I got it.

Somehow...asking others seems to help me find the answer myself

All I did was delete the "index.html" part of it in the "link to" area in Dreamweaver.
missingtime is offline
Reply With Quote
View Public Profile
 
Old 03-23-2008, 05:40 PM Re: dumb question - easily answered I'm sure
Defies a Status

Posts: 1,605
Trades: 0
Quote:
Somehow...asking others seems to help me find the answer myself
That's the way it works sometimes. If you had mentioned a link to the page you may have gotten a different answer.

At least it all worked out and you whipped it.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to dumb question - easily answered I'm sure
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.01601 seconds with 12 queries