Extension talk:PHP-Rewriter

From MediaWiki.org

Jump to: navigation, search

[edit] Method 1

Or, you could add something like this to the .htaccess file...

AddHandler x-httpd-php5 .php

AddHandler x-httpd-php .php4

[edit] Method 2

I had a similar problem with simply and namesco in the UK. The above method did not work for me, but the following did...

For installation, rename config/index.php as config/index.php5 and change the text in this file where you see index.php to index.php5


Once installed, add the following in localsettings.php

#fix for php5 problem
$wgArticlePath = "/wiki/index.php5?title=$1";
$wgScript = "{$wgScriptPath}/index.php5";

All other scripts appear to be included from index.php5 so as long as this has the php5 extension the rest seems to work fine. Your page will now be accessed as /wiki/index.php5?title=Main_Page

Personal tools