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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:04:50+00:00 2026-05-18T00:04:50+00:00

Probably someone has already asked this question but I’m not sure what I’m looking

  • 0

Probably someone has already asked this question but I’m not sure what I’m looking for.
I’ve seen a couple of applications in PHP that are doing this kind of url rewriting “http://site.com/index.php/myaction/avariable”
I’ve done a similar thing with mod_rewrite where you’d have almost the same link “http://site.com/whateveryouwant/myaction/avariable” that would redirect to the original page – http://site.com/index.php?action=myaction&variable=avariable (just an example)

What exactly is the difference ? I suspect that the first thing is done via PHP but I’m not sure how.

An example of what I’m talking about could also be the framework Symfony 2.0.

Any suggestions would be welcome.

Sorry if this is a duplicating question… I just don’t know what I’m looking for. 😐

  • 1 1 Answer
  • 1 View
  • 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-18T00:04:51+00:00Added an answer on May 18, 2026 at 12:04 am

    The general term is “routing”. You can also find info under “pretty urls” and “seo friendly urls”. The latter two will most likely get a mix results with what youre looking for, as well as what youve been doing with mod_rewrite already. But routing should turn up integrating some basic rewriting to direct to a Front Controller, and then use some scripting to parse the url and dispatch the request to the application.

    I think youll find the clearest example if you look at the documentation for the Zend_Framework architecture – in particular the Zend_Controller_Router component. Or you could also look through the Routing classes in Symfony 2.0 or 1.4… or any other framework really. I only mention Zend because they get into some detail about how it actually works internally – not just using it within the context of an app.

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

Sidebar

Related Questions

I feel like this question has probably been asked a thousand times already, so
I am sure this has been asked already, but I have been trying all
This question has been asked here before . The accepted answer was probably obvious
Probably a too special question, but just in case someone has faced a similar
Probably really easy for a pro, but could someone re-write this from it's PHP
Probably right in front of me, but I am not sure how to set
This has been asked a million times it appears, but I must be feeling
I am being an idiot, probably, but can someone help. I want to change
Probably not. But still would be nice to have it. Kinda hard to believe
Ok, so this seems bad (and it probably is, but i have enough doubts

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.