Topic on Project:Support desk

[SOLVED] Can't Login due Short-URL

6
Prefixaut (talkcontribs)

Hello Guys, I installed MediaWiki (1.23) in a Subdomain (http://wiki.prefixaut.net). It's in the wiki-Folder (http://www.prefixaut.net/wiki - Will redirect you to wiki-Subdomain). So after I have struggled for a while to get Short-URLs to work, I can't login. When I click on the Log in button, I get redirected and it tries to show me the index.php Wiki-Page.

To get it working on the Subdomain I tried everything till I REMOVED everything which could cause problems, so the .htaccess file in the /wiki folder is empty and the LocalSettings.php is the default one which MediaWiki generated from the Install.

I hope you can help me, thanks in advance.

Florianschmidtwelzow (talkcontribs)

Hello! And wiki.prefixauth.net points to what? The wiki/ folder? What you configured for $wgScriptPath?

Prefixaut (talkcontribs)
Florianschmidtwelzow (talkcontribs)

Yes, i know, but when your wiki subdomain's documentroot is the wiki folder itself, then your script path is simply false. Change it and the login will work...

Prefixaut (talkcontribs)

Thanks Florian and also thanks to Ciencia, changed booth Settings and works now :)

Ciencia Al Poder (talkcontribs)

You have:

Article path	/$1
Script path	/wiki
index.php	/wiki/index.php
api.php	/wiki/api.php
load.php	/wiki/load.php

That's a very bad idea, because if anything from the domain name will be a title of a page, all access to scripts (namely, /wiki/index.php) will be treated as accessing the article named wiki/index.php

You should rethink your URL scheme. Please read the recommendations again in Manual:Short_URL

Reply to "[SOLVED] Can't Login due Short-URL"