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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:24:06+00:00 2026-06-14T16:24:06+00:00

How to have requests to be handled by index.php For instance If I type

  • 0

How to have requests to be handled by index.php

For instance

If I type SEFs in the browser

http://localhost/friends
http://localhost/me

Rewrites to

http://localhost/index.php/friends
http://localhost/index.php/me

So I could access friends or me from $_REQUEST[‘PATH_lNFO’]

I’ve mod rewrite on and allow all directive set for the root directory in apache.

Need a .htaccess file,

  • 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-06-14T16:24:08+00:00Added an answer on June 14, 2026 at 4:24 pm

    look in this article http://www.sitepoint.com/apache-mod_rewrite-examples/ for this RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_]+)/([a-zA-Z_]+)$ display.php?country=$1&state=$2&city=$3 [L]

    AddDefaultCharset UTF-8
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /rtest
    RewriteCond %{HTTP_HOST} ^mathpdq\.com
    RewriteRule ^(.*)$ http://www.mathpdq.com/rtest/$1 [R=permanent,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    </IfModule>
    

    http://mathpdq.com/rtest/fred

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

Sidebar

Related Questions

I have a php/apache website under my userdir, say http://localhost/~johnny5/ I have a /en
I have an index.php with this code <div id=example class=functions></div> <script type=text/javascript> var ajax_load
Let's say I am getting requests such as: http://www.example.com/index.php?id=123&version=3&id=234&version=4 Is it possible to extract
I have an index.php file which handles all requests to the server. I've set
I have 3 file index.php, .js file, and a.php file. i made a ajax
In bottom of my index.php I have a Javascript function between paired <script> tags.
Using Jquery Ajax i have an entry script index.php This script lets the user
I have a index.php which handle all the routing index.php?page=controller (simplified) just to split
I have this .htaccess that I've been using to rewrite URLs like these: www.example.com/index.php?page=brand
I'm using PHP with Apache and pretty URLs with mod_rewrite. I have an index.php

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.