First, update your code to the current 1.3.9 if you
haven't already.
OK, I did, but things still aren't working.
My .htaccess file reads as follows:
# Don't rewrite requests for files in subdirectories,
# PHP files, HTTP error documents, favicon.ico, or robots.txt
# RewriteMap ampescape int:ampescape
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
# Rewrite
http://www.sourcewatch.org/article properly
RewriteRule ^/(.*)$ /index.php/$1 [L,QSA]
I get an infinite redirect loop with the following in LocalSettings.php:
$wgSitename = "SourceWatch";
$wgServer = "http://www.sourcewatch.org";
$wgScriptPath = "";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = '$wgScriptPath/redirect.php';
$wgStyleSheetPath = '$wgScriptPath/stylesheets';
$wgUploadPath = '$wgScriptPath/images';
$wgLogo = "{$wgUploadPath}/wiki.png";
$wgMathPath = "{$wgUploadPath}/math";
$wgArticlePath = "$wgScriptPath/$1";
$wgStylePath = "$wgScriptPath/stylesheets";
My site works (but with ugly URLs) if I replace wgArticlePath with
the following:
$wgArticlePath = "$wgScript?title=$1";
I get the same results when I change the RewriteRule in .htaccess to:
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA]
Can you tell me what I'm doing wrong? I've been chasing this problem
in circles now for several hours.
--Sheldon Rampton