I'm trying to separate my article and script paths as described in http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url in order to "steer the googlebot" and now I can't seem to render any images.
I'd originally installed mediawiki (this is on RH Linux) in /var/www/html/wiki so I did a mv to rename this directory to /var/www/html/w
I changed /etc/httpd/conf/httpd.conf
<Directory /var/www/html/w> AllowOverride FileInfo Options php_flag register_globals off </Directory> Alias /wiki/skins "/var/www/html/w/skins" Alias /wiki "/var/www/html/w"
The <Directory>.. block was there but I changed wiki to w I then added the two Alias statements. (and yes I've restarted httpd after each change)
I then changed LocalSettings.php I think that these are the relevant lines:
$IP = "/var/www/html/w";
#without the following line script links come out as /wiki $wgScriptPath = "/w"; $wgScript = "{$wgScriptPath}/index.php"; $wgRedirectScript = "{$wgScriptPath}/redirect.php"; #$wgStylePath = "{$wgScriptPath}/skins"; #Basing style on script hides skins??? $wgStylePath = "/wiki/skins"; $wgStyleSheetPath = &$wgStylePath;
## If using PHP as a CGI module, use the ugly URLs #$wgArticlePath = "$wgScript/$1"; #$wgArticlePath = "$wgScript?title=$1"; $wgArticlePath = "/wiki/$1"; #Default has $wgUploadPath = "{$wgScriptPath}/upload"; #But there is no upload directory and this seems to control where the #Image object looks so. $wgUploadPath = "{$wgScriptPath}/images"; #Ditto for $wgUploadDirectory DefaultSettings.php had this as "{$IP}/uploads" $wgUploadDirectory = "{$IP}/images"; $wgMathPath = "{$wgUploadPath}/math";
$wgLogo = "$wgStylePath/common/images/merclogo.png";
Before I changed $wgUploadPath and $wgUploadDirectory i was getting missingimage messages, I temporarily modified Skin.php to print the imagePath instead of just the name and it seemed to be correct and the files themselves existed. After the change I just get the alt text and no images.
I thought that it might be a permissions problem so I made sure that the owner and group of /var/www/html/w and everything below it is apache,apache
Any ideas? I'm pretty much stumped at this time.