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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:51:20+00:00 2026-05-13T20:51:20+00:00

Using Apache 2.2 and PHP 5, what’s the best way to run PHP without

  • 0

Using Apache 2.2 and PHP 5, what’s the best way to run PHP without the .php extension? For example, I have a script called app.php and I like to invoke it as:

http://example.com/app

Please notice that I still want to keep the .php extension to the file and I don’t have mod_rewrite. Don’t want use index.php either because it requires too many directories.

I did find one way by adding this to my .htaccess,

AddHandler server-parsed .php
SetHandler application/x-httpd-php
AddHandler application/x-httpd-php .php

The page runs a little slower by using this. I suspect it invokes SSI on every PHP page. Wonder if there are any better ways to accomplish this.

  • 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-13T20:51:21+00:00Added an answer on May 13, 2026 at 8:51 pm

    An alternative is to use content negotiation. Turn on multiviews:

    Options +MultiViews
    

    If a named resource doesn’t exist, Apache will glob for the file, then sort based on the media type and content encoding requirements send by the browser. If there’s only one file (your PHP script), then that’s what the URL resolves to.

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

Sidebar

Ask A Question

Stats

  • Questions 498k
  • Answers 498k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If your WCF services are on the same machine, use… May 16, 2026 at 12:23 pm
  • Editorial Team
    Editorial Team added an answer something like this: delimiter # create trigger FiscalYearTable1_before_ins_trig before insert… May 16, 2026 at 12:23 pm
  • Editorial Team
    Editorial Team added an answer Yup, "The :first-child pseudo-class matches an element that is the… May 16, 2026 at 12:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a product catalog using apache, php and mysql. I need to put
On Windows using WAMPserver (Apache, MySQL, PHP) I have the following: //test.php if (!defined('LC_MESSAGES'))
I'm using Apache/PHP to support shorlinks to documents and I'm having trouble with the
I have a problem that I cannot wrap my head around. I'm using Apache
i wonder which installation to use for my php? i will be using apache.
I am using maxminds geoip apache mod extention. It requires the php function 'apache_note'.
My code fetches CSV data from a PHP page using httplib. When I open
I have a web server which receives an image from a client and do
According to PHP, locale information is maintained per process. Is my understanding correct that
relatively long-time PHP user here. I could install XAMPP in my sleep at this

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.