I am trying to get the short URLs working and after searching the mailing list archives don't see a solution to my problem anywhere.
I am starting to think that the Drupal modifications (see bottom) to .htaccess are causing my "Page not found" errors on all Mediawiki pages.
I followed the instructions at both URLs below but have had little success.
http://www.mediawiki.org/wiki/Manual:Short_url http://www.mediawiki.org/wiki/Using_a_very_short_URL
Here are my steps so far:
1) I have added the following line into my LocalSettings.php file.
$wgArticlePath="/wiki/$1";
2) I have added the following line to my .htaccess file in the DocumentRoot folder (/public_html)
RewriteRule ^/wiki/(.*)$ /archives/index.php?title=$1 [PT,L,QSA]
Note that Mediawiki is installed into a folder called archives off of the root (public_html). So the mediawiki index.php is located at
public_html/archives/index.php
I have Drupal installed into the root folder which already had inserted the lines below into the .htaccess file. I simply added my new line below these.
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
This has now become (to include the Mediawiki rule):
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] RewriteRule ^/wiki/(.*)$ /archives/index.php?title=$1 [PT,L,QSA]
Any suggestions?
Thanks, Paul