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 405121
In Process

The Archive Base Latest Questions

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

I have always used mod_rewrite for creating clean looking URLs, until recently I didn’t

  • 0

I have always used mod_rewrite for creating clean looking URLs, until recently I didn’t know there was any other option. A few weeks back someone on here pointed out that exactly the same effect can be achieved using apache PATH_INFO. Thinking about it now, I assume this is what most PHP frameworks do, optionally relying on mod_rewrite purely to remove the index.php bootstrap from the URL.

All leads to a few questions:

  1. Which is the better way of creating a clean and flexible URL structure like:
    /page/var/foo/bar/2?
  2. What are the relative advantages/disadvantages of the two methods?
  3. Which method peforms better in terms of resource usage etc.?

Thanks.

  • 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-12T17:22:15+00:00Added an answer on May 12, 2026 at 5:22 pm

    with pathinfo you will always have script name in the url, which looks pretty lame (and not considered valid by some agents). I’d suggest mod_rewrite as primary method with pathinfo or 404 handler as fallbacks.

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

Sidebar

Related Questions

i have never used LINQ in any of my projects , i have always
I have always used the mouseover event, but while reading the jQuery documentation I
As a hardcore WinForms programmer from a Win32 background I have always used Spy++
I have generally always used some sort of Hungarian Notation for my field names
I always have used Spring Framework classes as-is. However I am thinking of customizing
I have a C program which has always used hard coded define statements for
We have used Infragistics controls in our applications for years. However, we have always
I have java sdk 1.7. I've always used django/python for web development, this will
I have always used XML for returning data from my servlets and i have
I have always used a Singleton class for a registry object in PHP. As

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.