Remove index.php from wiki URL

In httpd.conf: 

   Alias /wiki/index.php /home/rsreese/richardsreese/htdocs/w/index.php   Alias /wiki /home/rsreese/richardsreese/htdocs/w/index.php

In Localsetting.php: 

   $wgScriptPath       = "/w";   $wgScript           = "$wgScriptPath/index.php";   $wgRedirectScript   = "$wgScriptPath/redirect.php";

   ## For more information on customizing the URLs please see:   ## http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url   ## If using PHP as a CGI module, the ?title= style usually must be used.   #$wgArticlePath      = "$wgScript/$1";   $wgArticlePath      = "/wiki/$1";
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>