Last modified: 2010-05-15 15:59:38 UTC
hi, editing a page ends alawys in editing "Index.php". has something to do with short urls. i have set up "www.url.org/Main_Page" short url type it worked with 1.10 if i set up normal urls editing works in 1.11 too my htaccess is: RewriteEngine On RewriteCond %{HTTP_REFERER} RewriteRule .* %{HTTP_REFERER} [R,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)$ /index.php/$1 [L] LocalSettings.php is: $wgScriptPath = ""; $wgArticlePath = "/$1"; i can post any additional information that may help.
Not a Mediawiki bug. You need to skip the rewriting if the file exists (index.php). You can edit with http://www.terrapedia.org/Hauptseite?action=edit
are you sure it is a mod_rewrite problem? because it worked as expected within 1.10 but with 1.11 not. the link to the edit page is as expected also the url is when you click it: http://www.terrapedia.org/index.php?title=Hauptseite&action=edit but it just ends in editing index.php. i'm just confused because it worked before without any problems!
It is a mod rewrite problem. As the manual says: DO NOT MAP WIKI PAGES TO THE DOCUMENT ROOT. Read all the big fat warning boxes on http://www.mediawiki.org/wiki/Manual:Short_URLs This rule is the problem: RewriteRule ^(.+)$ /index.php/$1 [L] If you request /index.php?title=Foo&action=edit, the rule will match, and it will be rewritten to /index.php?title=index.php&action=edit Same goes for loading the css and js files mediawiki needs. Basically, go with the standard "files in /w, pages in /wiki" setup. Or be very carefull to get the setup right, and expect more problems in the future.
ok but i still don't get why its working in 1.10 then?! is that making sense? because the rewrite would be the same and should not work. but it does?