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

  • SEARCH
  • Home
  • 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 862391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:08:02+00:00 2026-05-15T09:08:02+00:00

Of course, the traditional method is to let the filesystem and your webserver work

  • 0

Of course, the traditional method is to let the filesystem and your webserver work out the urls. E.G., http://www.example.com/index.html -> /var/www/public_html/index.html

But I’ve noticed a trend in which, as opposed to letting the webserver do the mapping for you, you do it yourself (e.g., Rails and its routes config file, so /index is mapped to app/controllers/index.rb or w/e you set it up to be).

Now I realize that one of the advantages of the latter approach is that nobody can view your source code if the server starts failing to execute stuff or w/e; but for compiled CGIs, this obviously isn’t a problem.

Is there any real reason (REST-related ideas aside) to parse the URLs yourself? (I have a feeling that it’s slower than letting Apache do it.)

  • 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-15T09:08:03+00:00Added an answer on May 15, 2026 at 9:08 am

    The thing about defining routes yourself (as the ruby example you gave) is that the URIs don’t have to point to actual files. In case of MVC frameworks they simply point to actions. You could have several actions be handled by the same controller, which is in the same class and in the same file. Here’s a nice (ASP.NET MVC) example of what routing gives you (in particular take a look at the section on search).

    The extension of that is that URIs don’t point to files, they point to resources. Such resources could be backed by files, or database tables, or some poor guy who writes out html for every request by hand and taps the 0’s and 1’s using Morse code.

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

Sidebar

Related Questions

I've got a PHP/AJAX form on my site at http://www.brianrhea.com (click Request Project) When
I'm into a little migration from traditional DataSets and of course continue go through
<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd> <html> <head> <style type=text/css> h2:first-child {
* *Updated code as of 3-28 Index.php <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
Of course when developing IE is causing me headaches. This page with rounded corner
Of course, I can explain it in whole books. But I read a few
Of course we can do this, but is it alright to do so? Are
Of course I know is possible to create a file with a certain size
var course = from b in DbModle.courses where b.name == test select b; DataTable
Of course, assuming the program is running in the same directory with the database.

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.