Hi,
i just upgraded from 1.10.0 to 1.11.0 and have to see, that short URLs aren't working anymore when I try to edit an article. Example:
I can open the article http://www.t4-wiki.de/wiki/WIV
When I click on "bearbeiten" (= edit) the URL is changed to http://www.t4-wiki.de/wiki/index.php?title=WIV&action=edit and the software is trying to edit index.php instead of WIV.
Similar problem, if I try to log in/out. The software puts an index.php?titel= between die Wiki-URL and the special: http://www.t4-wiki.de/wiki/index.php?title=special:... Result: no login/out possible.
For short URL I use the following setup in localsettings.php: $wgSitename = "T4-Wiki"; $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php"; $wgArticlePath = "$wgScriptPath/$1";
htaccess in /wiki: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]
Please, help me,
Udo
Am Freitag, den 18.01.2008, 07:24 -0800 schrieb zaydo:
For short URL I use the following setup in localsettings.php: $wgSitename = "T4-Wiki"; $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php"; $wgArticlePath = "$wgScriptPath/$1";
Hi Udo,
interesting problem. I reckon $wgScript and $wgRedirectScript aren't necessary settings. I'd remove them from LocalSettings.php and see if the problem goes away.
~ Kilian
Hi,
of course, I did not change anything on the server. And, using my backup (1.10.0-installation) everything works fine.
Therefore, i assume that some upgraded file is causing the problem.
Udo
Hi,
when moving the mouse in the browser window (Firefox), the URLs of links are displayed in a status bar. All look good (short URL) except some of those on top of an article: - edit - history - delete - protect - watch
They show index.php?title within the URL. discuss (talk?) and move are fine. Same problem with the login-button; all others are fine.
What could that be?
Udo
On 18/01/2008, zaydo zaydo@gmx.de wrote:
when moving the mouse in the browser window (Firefox), the URLs of links are displayed in a status bar. All look good (short URL) except some of those on top of an article:
- edit
- history
- delete
- protect
- watch
They show index.php?title within the URL. discuss (talk?) and move are fine. Same problem with the login-button; all others are fine. What could that be?
That's normal, as far as I can tell. Wikipedia does the same.
- d.
Hi David,
David Gerard-2 wrote:
That's normal, as far as I can tell. Wikipedia does the same.
Yepp, I recognized that after the post. You never look at it, if erverything is working fine ;-)
Udo ~
it looks very much like the rewrite engine doesn't find index.php and thus rewrites the URL to that of a wiki page called "index.php".
A new suggestion to solve this: Add a RewriteBase clause to your .htaccess, like this:
htaccess in /wiki: RewriteEngine On RewriteBase /wiki/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]
~ Kilian
Hi Kilian,
well, my rewrite did the job since 2006 without problems. The problem started with the upgrade. But it's solved at least temporarily by modifying includes/WebRequest.php.
Thanks, Udo
Hi,
never mind, the problem is solved:
http://www.organicdesign.co.nz/MediaWiki_1.11_title_extraction_bug
mediawiki-l@lists.wikimedia.org