On 23/02/2008, Thomas Dalton <thomas.dalton(a)gmail.com> wrote:
I've
recently upgraded from 1.9.3 to the latest 1.11.1 and I'm unable
to make my short url's work correctly.
How are you doing the short urls? Copy and paste the appropriate lines.
LocalSettings.php
$wgScriptPath = "/w";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "/$1";
Apache httpd.conf
RewriteEngine on
RewriteRule ^/w/.*$ - [L]
RewriteRule ^/$ /w/index.php?title=Main_Page [L,QSA]
RewriteRule ^(.+)$ /w/index.php?title=$1 [L,QSA]
It's set up like this at the moment but I've tried lots of different
ways. Originally, before the upgrade it was like this:
RewriteRule ^/robots.txt$ /robots.txt [L]
RewriteRule ^/favicon.ico$ /favicon.ico [L]
RewriteRule ^/w/(.*) /w/$1 [L]
# This enables "Wikipedia-style" URLs
RewriteRule ^/wiki$
http://wiki.themixingbowl.org/wiki/ [R,L]
RewriteRule ^/wiki/(.*) /w/index.php/$1 [L]
RewriteRule ^/wiki/index.php(.*) /w/index.php$1 [L]
RewriteRule ^/$ /w/index.php/Main_Page [L]
RewriteRule ^/Main_Page$
http://wiki.themixingbowl.org/ [R=permanent,L]
# Finally, if we've gotten this far, process it as if it's an article.
RewriteRule ^/(.*) /w/index.php/$1 [L]
But, as noted in the original post I do not beleive that the re-write
rules are at fault as:
a) It worked fine before the upgrade
b) If I leave the rewrite rules then set $wgArticlePath =
"$wgScript?title=$1"; then URL's of the format
(
http://wiki.themixingbowl.org/w/index.php?title=Special:Userlogin&retur…)
work fine again.
Thanks for your time