Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1053501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:15:48+00:00 2026-05-16T17:15:48+00:00

I was browsing the internet and noticed, YouTube, for example, contains a URL like

  • 0

I was browsing the internet and noticed, YouTube, for example, contains a URL like this to denote a video page: http://www.youtube.com/watch?v=gwS1tGLB0vc.

My site uses a URL like this for a topic page: http://www.example.com/page.php?topic_id=6f3246d0sdf42c2jb67abba60ce33d5cc.

The difference is, if you haven’t already noticed that on youtube, there is no file extension for their watch page, so I am wondering, why do some sites not use file extensions and what use does it serve?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:15:49+00:00Added an answer on May 16, 2026 at 5:15 pm

    File extensions are not used because of the idea that URIs (and therefore URLs) should be independent of implementation – if you want to access the CDC’s information about food safety, you should be able to go to https://www.cdc.gov/foodsafety (for example). Whether the CDC’s servers are using PHP or Python or Perl doesn’t matter to the end-user, so they don’t need to see it. The end-user doesn’t care how the page was generated, because all languages serving a webpage output the same HTML, CSS, and the like, and the user is just viewing the page in their web browser.

    Most web frameworks build this functionality in by default, precisely for this reason, and it can be accomplished regardless with URL rewriting in most webservers. This ideal is codified in the W3C Style Guide, which is undoubtedly a big factor in this idea being so widely accepted. It’s outlined in their guide, "Cool URIs Don’t Change", which should clear things up if you still don’t quite understand the reasoning here. That document is the go-to statement on the issue, and the de facto standard for frameworks.

    It is worth noting that usually files that end up being downloaded (and sometimes data files used in AJAX) will still have their file extensions intact – http://example.com/song.mp3 or http://example.com/whitepaper.pdf – because they are intended to be saved to the end-user’s computer, where file extensions matter. The extensions are not included for pages that are simply displayed – which is most pages.

    A postscript: The example page this answer originally linked to stopped existing at some point, because sometimes URIs do change, despite best practices. I’ve replaced it with the CDC’s food safety page, which has existed in some form for at least 20 years now. Undoubtedly, numerous different technologies have served up that content over the years, while always doing so at the exact same URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While browsing with Chrome, I noticed that it responds extremely fast (in comparison with
From browsing on this site and elsewhere, I've learned that serving websites as XHTML
Is browsing speed depends on browser (like IE,firefox)? If it depends on browser which
I was browsing this thread , which has good recommendation but a bit too
I was browsing Scott Hanselman's Developer Interview question list , and ran across this
Browsing through the git documentation, I can't see anything analogous to SVN's commit hooks
When browsing ASP.NET MVC source code in codeplex , I found it is common
While browsing some code I found a call to OpenPrinter() . The code compiles
Say a user is browsing a website, and then performs some action which changes
SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not borrow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.