×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

URL Names

URL Names

URL Names

(OP)
I often see urls such as website.com/blog/post. How are these urls valid since it appears they point to a webpage named post that does not have a .htm suffix? To be a valid url it seems the address should be website.com/blog/post.htm.

Thanks, Bob

RE: URL Names

Quote:

How are these urls valid since it appears they point to a webpage

A URL of [www] domain.tld does not have an extension on the name either but is still valid.


A web server has a sequence of tests to 'decide' on what content should be served to the user agent for a requested URL.

If the URI, (URI because it is no longer a URL at this point) ends with a slash "/" the server 'knows' that it is a directory that is being requested, so it tries to find a document name that is in the "Index Document" list (index.html index.htm default.htm and so on) and it delivers the content from the first one it locates.

If the URI does not end in a "/" but has no document name appended, the server will append a slash and make an "internal" redirect to the new URI.

If the requested URL ends in a document name, the server will locate that then process it according to the MIME type and serve the resulting content to the requesting agent.



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close