I just upgraded to 1.11.0 over the weekend and have a problem with the Short URLs. When I click the "edit" link for a page, the editor tries to edit a page named "index.php". Basically, it's impossible to edit any page because the edit URL will not work with Short URLs enabled.
The site URL structure is *http://www.domain.com/Page_Name*. When I click the edit link on a page, the URL is *http://www.domain.com/index.php?title=Page_Name&action=edit* However, the edit box is blank and and the title of the page being edited is wrong; here is what the page shows: /Editing Index.php. You've followed a link to a page that doesn't exist yet. To create the page, start typing in the box below. / I deactivated all plugins and reverted to the default skin; no change.
I added the following to the *LocalSettings.php* file to activate the Short URLs:
$wgArticlePath = "/$1";
_If I remove the above entry_ from the *LocalSettings.php* file and load the same edit URL listed above, it picks the correct page and _edits work perfectly_.
Any ideas?
*Some additional info about the site:* All of the mediawiki files are installed in the root directory (not in a sub-directory). PHP 5.2.x, MySQL 5.0.37. Here is my .htaccess file:
Options FollowSymLinks RewriteEngine On php_value register_globals 0 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
Carlton Bale wrote:
Options FollowSymLinks RewriteEngine On php_value register_globals 0 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
Do you have line breaks in .htaccess that you have not shown above? I'd expect above to have line breaks as follows:
Options FollowSymLinks RewriteEngine On php_value register_globals 0 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
(but I'm not clear about "php_value register_globals 0")
and possibly even to contain:
AddHandler application/x-httpd-php5 .php
(unless you are *sure* your server is really running php5 by default and not php4 by default)
It's this bug: http://bugzilla.wikimedia.org/show_bug.cgi?id=11428
Just add "$wgUsePathInfo = false;" to your LocalSettings.php for now.
http://www.mediawiki.org/wiki/ Manual_talk:Short_URL#Problem_with_http:.2F.2Fwww.mediawiki.org. 2Fwiki.2FManual:Short_URL.23Rewrite
mediawiki-l@lists.wikimedia.org