On Thu, Jun 16, 2005 at 03:19:51AM -0700, Brion Vibber wrote:
Arthur Guy wrote:
How do you set up wikimedia to use index.php only when you are editing pages?
I know you can remove the extension from the local settings file but how do you tell it to use the extension when you are editing pages, is there something in defaultsettings file?
http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
Note usage of $wgScript and $wgArticlePath.
That recipe seems to have it's problem, it results in horribly bad performance and log entries like this:
123.123.123.123 - - [20/Jun/2005:15:01:49 +0100] "GET /wiki/Main_Page HTTP/1.1" 304 26 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4" 123.123.123.123 - - [20/Jun/2005:15:01:49 +0100] "GET /wiki/Main_Page?title=User:JoeUser/-&action=raw&gen=js&maxage=18000 HTTP/1.1" 302 26 "http://www.some-domain.org/wiki/Main_Page" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4" 123.123.123.123 - - [20/Jun/2005:15:01:50 +0100] "GET /wiki?title=Main_Page&action=raw&ctype=text%2Fjavascript&smaxage=18000&maxage=18000&gen=js&oldid=0 HTTP/1.1" 302 26 "http://www.some-domain.org/wiki/Main_Page" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4"
[same line repeats 20 times]
123.123.123.123 - - [20/Jun/2005:15:01:57 +0100] "GET /wiki/Main_Page?title=MediaWiki:Monobook.css&action=raw&ctype=text/css&smaxage=18000 HTTP/1.1" 302 26 "http://www.some-domain.org/wiki/Main_Page" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4" 123.123.123.123 - - [20/Jun/2005:15:01:57 +0100] "GET /wiki?title=Main_Page&action=raw&ctype=text%2Fcss&smaxage=18000&maxage=18000&gen=css&oldid=0 HTTP/1.1" 302 26 "http://www.some-domain.org/wiki/Main_Page" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4"
[same two lines repeated 20 times]
I guess I don't understand why the browser keeps stubornly requesting the same URLs 20 times. Any hints?
Ralf