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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:33:15+00:00 2026-05-11T03:33:15+00:00

I have a personal website with a MediaWiki installation on a shared host. The

  • 0

I have a personal website with a MediaWiki installation on a shared host. The Apache configuration treats all .php request with PHP 4, and all .php5 requests with PHP5.

For compatibility reasons I need to be able to use the .php extension, but MediaWiki is only available on PHP5. I tried to use the mod_rewrite engine, but I’m stuck with the rule.

Here’s the current file:

DirectoryIndex index.php5  RewriteEngine on   # This rewrites URIs in the form /pages/Article_Name to /index.php5?title=Article_Name. RewriteCond %{REQUEST_URI} !^/pages/index.php5.*$ [NC]     RewriteRule ^pages/?(.*)$ /index.php5?title=$1 [L]  # This is the broken rule RewriteCond %{REQUEST_URI} ^index\.php(([^5])(.*))?$ [NC]        RewriteRule ^index\.php(([^5])(.*))?$ /index.php5?$1 [L] 

The idea of the rule was ‘Redirect all content from index.php (not followed by ‘5’) to index.php5′.

Any idea?


Edit:

SetEnv PHP_VER 5 

works, but I’m still interested on why the rule was not taken into account.

  • 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. 2026-05-11T03:33:16+00:00Added an answer on May 11, 2026 at 3:33 am
    RewriteEngine On RewriteBase / RewriteRule ^(.*)\.php $1.php5 [R=301,L] RewriteRule ^(.*)\.php $1.php5 [L] 

    I found this on the following web site which may be useful, you could make it more specific and remove the catchall to change only a certain number of .php files if you liked.

    You can also customize it to suit only a certain directory using the RewriteBase condition.

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

Sidebar

Related Questions

At my personal website while viewing a single post, i have an overview DIV,
i dont have any personal website so can i still enroll the iphone developer
I am trying to have tooltip for my personal website http://www.stacked.in . when I
I am currently developing my personal website and part of my site I have
I'm designing my personal website at the moment and want to have images inside
I have a personal website that I want to see when the last post
I have a personal project that's been online for sometime now. I've been keeping
I have several sources of tables with personal data, like this: SOURCE 1 ID,
Up till now I have been developing my personal and school projects at home
I have a database for a web application that is home to some personal

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.