Moin,
On Sunday 23 April 2006 18:40, Michelle wrote:
Sorry to bug everyone again... I want to use mod rewrite to convert ugly url's (index.php?title=Main_Page) to nicer ones (index.php/ Main_page). The ugly URL is enabled in my LocalSettings.php.
I've created this .htaccess file:
RewriteRule ^index.php?title=(.*)$ index.php/$1 [L]
And put it in my root directory. But it seems to have no effect (the provider says rewriting is enabled).
Does anyone see what I'm doing wrong?
I had the same problem, and after digging around that worked:
RewriteEngine on php_flag register_globals 0 # /wiki/Foo => /wiki/index.php?title=Foo RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
The RewriteEngine on needs to be there, and the rewriting is better than the rule you have (which did not work on my server, either).
HTH,
Tels