Hi,
I am not able to get this extension working. All my efforts either ends up in 400 not found or Bad Request.
what I am doing is, added following in my LocalSettings.php
require_once("$IP/extensions/ShortLinks/ShortLinks.php");
$wgArticlePath = "wiki/$1";
$wgUsePathInfo = false;
Added following in httpd.conf file:
LoadModule rewrite_module modules/mod_rewrite.so
<syntaxhighlight lang="php" strict>
<VirtualHost IP:port no>
RewriteEngine On
DocumentRoot "/path/to/apache/webroot/"
<Directory /path/to/apache/webroot/>
AllowOverride All
Require all granted
</Directory>
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/Mediawiki-1.23/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
</VirtualHost>
Value for following variables are:
$wgArticlePath = "/wiki/$1";
$wgScriptPath = "/Mediawiki-1.23";
What I am expecting is, that in the browser I should get the URL as "http://IP/Mediawiki-1.23/ " (w/o the index.php) and also it should be able to navigate within the wiki w/o having the index.php in the URL. I am trying this on Apache 2.4 and PHP 5.4. Please suggest, how can I get this working?