Recursion
18-03-2012, 01:52 PM
'sup,
So can anyone help with rewrite rules here? I have a MediaWiki install in the root of the web directory and am trying to get the URLs to look 'pretty'. So far I have http://wiki.example.com/index.php/Main_Page but I want to get rid of the index.php part, so it just looks like http://wiki.example.com/Main_Page.
.htaccess:
RewriteEngine On
RewriteRule ^[^:]*\. - [L]
RewriteRule ^[^:]*\/ - [L]
RewriteRule ^/*$ /index.php?title=Main_Page [L,QSA]
RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
LocalSettings.php
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgUsePathInfo = true;
Thanks
So can anyone help with rewrite rules here? I have a MediaWiki install in the root of the web directory and am trying to get the URLs to look 'pretty'. So far I have http://wiki.example.com/index.php/Main_Page but I want to get rid of the index.php part, so it just looks like http://wiki.example.com/Main_Page.
.htaccess:
RewriteEngine On
RewriteRule ^[^:]*\. - [L]
RewriteRule ^[^:]*\/ - [L]
RewriteRule ^/*$ /index.php?title=Main_Page [L,QSA]
RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
LocalSettings.php
$wgScriptPath = "";
$wgScriptExtension = ".php";
$wgUsePathInfo = true;
Thanks