At the moment, titles are like this:
Note the absence of /wiki in the URL.
Traditionally, MediaWiki instances have /wiki in their URL:
https://it.wikipedia.org/wiki/Enciclopedia
If possible, we should have this instead:
https://pietro.pensa.it/Archivio_Digitale_Pietro_Pensa_e_Centro_di_documentazione_e_informazione_dell%27Ecomuseo_delle_Grigne
Downsides:
- it's a nightmare to keep incoming links alive
Benefits:
- less file conflicts
- standard MediaWiki installation, easier to maintain
Current htaccess:
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
# include these last two lines if you use the analog stats
RewriteCond %{REQUEST_URI} !^/failed_auth.html$
RewriteCond %{REQUEST_URI} !^/missing.html$
RewriteCond %{REQUEST_URI} !^/stats/
RewriteCond %{REQUEST_URI} !^/mediawiki/
RewriteRule ^(.*)$ mediawiki/index.php?title=$1 [QSA]Current config:
$wgArticlePath = "/$1";
Proposal:
- Apache mod_rewrite rule to redirect /title to /wiki/title.
- Change article path from /$1 to /wiki/$1