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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:40:08+00:00 2026-05-23T03:40:08+00:00

I have numerous index.php scripts using SEO-friendly arg format like example.com/path/to/index.php/opt/arg and would like

  • 0

I have numerous index.php scripts using SEO-friendly arg format like

example.com/path/to/index.php/opt/arg

and would like to rewrite or force a handler to have

example.com/path/to/ih/opt/arg

and thus shorten the index.php part. [Well, I’d like to get rid of it entirely, but don’t want to go back to

example.com/path/to/?opt&arg

format.] This should be generally supported in any dir on the site rather than requiring .htaccess, alias, or http.conf modification. For my next trick I’ll expand ‘ih’ for PHP to also cover ‘ip’ for Perl, ‘ir’ for Ruby, ‘iy’ for Python, and perhaps others. [My original thought was just ‘i’ but then I realized that there are other languages for which I’ll want this as well.]

I’ve tried playing with MultiViews but clearly don’t know what I’m doing 🙂 I’ve looked extensively at mod_rewrite but just can’t see how to implement something like this. I took a quick look at forcing a handler but 1) am not sure that’s really what I mean (and so I beg forgiveness in advance for perhaps using the wrong term) and 2) have the added fun challenge of running 1.3 where I host vs 2.2 at home 🙂

Suggestions?

TIA & HAND

😀

David T-G
http://justpickone.org/davidtg/email/

  • 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-23T03:40:09+00:00Added an answer on May 23, 2026 at 3:40 am

    Since you looked into using mod_rewrite, I’m going to assume you don’t mind making a one-time change to .htaccess or httpd.conf, but just don’t want to have to do it for every index.php on your site. (Correct me if I’m wrong!)

    Try this:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*\/)?ih(\/.*)?$ $1index.php$2 [L,QSA]
    

    You may not need the two RewriteConds. They just check that the original URL did not exist as an actual file on the system, before rewriting that URL.

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

Sidebar

Related Questions

I have a JSON result that contains numerous records. I'd like to show the
I have numerous Web Services in my project that share types. For simplicity I
I have more than one OpenID as I have tried out numerous. As people
There are numerous times you have an interface that accepts similar type arguments that
I have a C library with numerous math routines for dealing with vectors, matrices,
I have a asp.net 2.0 web site with numerous asp:DropDownList controls. The DropDownList control
I have an asp.net text form that contains numerous decimal fields that are optional.
There are numerous Agile software development methods. Which ones have you used in practice
Over the last few months/years, I have shared a folder or two with numerous
At work, I'm frequently working on projects where numerous properties of certain objects have

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.