Date: Sat, 26 Sep 2009 01:23:50 +0200
From: Platonides <Platonides(a)gmail.com>
Subject: Re: [Mediawiki-l] Upload Problem
To: mediawiki-l(a)lists.wikimedia.org
Message-ID: <h9jje6$t8n$1(a)ger.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Alessandra wrote:
Hi all,
I use mediawiki 1.15.1 and I add option about 'delete' "/index.php"
from url, so that:
1) I added this lines into LocalSettings.php:
$wgArticlePath = "/$1";
$wgUsePathInfo = true;
2) and I created .htaccess into /path/wiki/:
RewriteEngine On
# Don't rewrite requests for files in MediaWiki subdirectories,
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt
RewriteCond %{REQUEST_URI} !^/(stylesheets|images|skins)/
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/cgi-bin/download/upload_user.pl
# Rewrite
http://wiki.example.com/article properly, this is the main rule
RewriteRule ^/(.*)$ /index.php/?title=$1 [L,QSA]
With this configuration,
http://genomics.cribi.unipd.it/Special:Upload exists:
1) I can edit it, but when I click button 'Upload file', it doesn't
work and it only reloads Special:Upload page
2) if I comment this line into LocalSettings.php:
# $wgArticlePath = "/$1";
then
http://genomics.cribi.unipd.it/Special:Upload works.
How do I do to keep short url with Special:Upload running?
Can you help me about it?
Best,
Alessandra.
Is $wgScript correctly pointing to index.php?
PS: api.php is unreachable in your config.