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.
Alessandra wrote:
Hi all,
I use mediawiki 1.15.1 and I add option about 'delete' "/index.php" from url, so that:
- I added this lines into LocalSettings.php: $wgArticlePath = "/$1"; $wgUsePathInfo = true;
- 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:
- 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.
mediawiki-l@lists.wikimedia.org