Thanks, that was exactly what I was looking for. However, I'm having one problem. I used the Kludge method from the page http://meta.wikimedia.org/wiki/Using_a_very_short_URL and it seems to be working okay, except for one thing: Searches don't work.
Whenever I run a search, it tells me it's a badly formed search query. I believe the reason is that the search form is POSTing to /Special:Search instead of /index.php/Special:Search. If I add in the index.php manually, it works fine.
Any idea why this is, and how I can fix it? If nothing, could someone point me to the file that prints the Search box so I can manually change the form action?
Thanks.
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l- bounces@Wikimedia.org] On Behalf Of Sérgio Ribeiro Sent: Tuesday, July 19, 2005 5:34 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Get rid of index.php in URL
-> http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url
Cheers,
On 7/20/05, Zain Memon zain@voltage.com wrote:
I know I've read somewhere about how to use Apache to get rid of the index.php in URLs i.e. changing http://wiki/index.php/Main_Page to http://wiki/Main_Page. I can't seem to find that page again. Can someone point me to that article or describe the RewriteRules required to accomplish this?
Thanks.
-- Edit this page @ http://pt.wikipedia.org _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Zain Memon wrote:
Thanks, that was exactly what I was looking for. However, I'm having one problem. I used the Kludge method from the page http://meta.wikimedia.org/wiki/Using_a_very_short_URL
That's a bad idea -- I strongly recommend against doing this as it fills your entire URL namespace with the wiki. This will break legitimate files unless you add exceptions, and make it impossible to have wiki pages with titles conflicting with those exceptions. It may cause strange errors for use with actual files that you forgot to except.
The URL space for the wiki pages should *always* appear as a 'subdirectory', not the root URL, for compatibility and safety.
and it seems to be working okay, except for one thing: Searches don't work.
Your rewrite rules must include [QSA] for the query string to be passed through.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org