For everyone running into 404 not found errors on a mediawiki login.
I'm not sure if my scripts were configured correctly or not to begin with (took over a project), so this problem may only exist for me...but anyhow.
I was able to fix this by modifying the /includes/templates/userlogin.php file. This file controls the action attribute of the login form, and it currently points to vB's login.php file, which takes an optional url GET variable, telling the script where to redirect the user after login.
You just need to modify the userlogin.php template file to create the correct value for the return url.
I did this by changing:
PHP Code:
$base_mw_url = $vbulletin->options['mmog_wiki_path'] . ( $vbulletin->options['mmog_wiki_short_url'] ? '/' : '/index.php/' );
To:
PHP Code:
$base_mw_url = $vbulletin->options['mmog_wiki_path'] . ( $vbulletin->options['mmog_wiki_short_url'] ? '/' : '/index.php?title=' );
And:
PHP Code:
$redirlink = '?url=' . $base_mw_url . $returnNS;
To:
PHP Code:
$redirlink = '?url=' .$vbulletin->options['bburl']. $base_mw_url . $returnNS;