Hi Paul,
I'm not an expert at Apache config, though I agree with your assessment that the Drupal rewrites are causing a conflict.
Installing Drupal to a subdirectory rather than the root will almost certainly help. If your web host supports sub-domains, you may want to consider something like:
/public_html/wiki ~ wiki.yourdomain.com /public_html/drupal ~ www.yourdomain.com
-- Jim
On 3/26/07, Paul Coghlan pcoghlan@usa.net wrote:
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:
- I have added the following line into my LocalSettings.php file.
$wgArticlePath="/wiki/$1";
- 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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l