[Mediawiki-l] Rewrite rules and login link

Joshua Rochester josh-keyword-mediawiki.1cf817 at wahay.com
Sun Nov 21 07:50:23 UTC 2004


I have rewrite working. It's great. Except....

The link at the top of the page isn't giving the "Special:Userlogin" link
that works...but rather appending it as a query string like so:
"Main_Page?title=Special:Userlogin&returnto=Main_Page"....and this link does
nothing. Reloads Main_Page...that's it.

.htaccess:
php_flag register_globals off

RewriteEngine on

RewriteRule ^$ /index.php [L]

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

RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI}
^/wiki/Special:Search

RewriteRule ^(.*)$ /index.php/$1 [L,QSA]

LocalSettings.php:
$wgSitename         = "Sitename";
$wgServer           = "http://www.foo.org";

$wgScriptPath       = "";
$wgScript           = "$wgScriptPath";
$wgRedirectScript   = "$wgScriptPath/redirect.php";

$wgArticlePath      = "$wgScript/$1";

$wgStylePath        = "$wgScriptPath/stylesheets";
$wgStyleDirectory   = "$IP/stylesheets";
$wgLogo             = "$wgStylePath/images/wiki.png";

$wgUploadPath       = "/images";
$wgUploadDirectory  = "$IP/images";

Any help?

Josh




More information about the MediaWiki-l mailing list