Getting Pretty URLs with phpwiki
The default for the phpwiki wiki software is to have links of the form /index.php/HomePage. This is ugly. To get Wikipedia-style permalinks, append the following to .htaccess and verify that you have the mod_rewrite apache module installed:
RewriteEngine On RewriteRule ^index\.php/([^\.]*)$ /redir.php?dest=$1 RewriteRule ^([^\.]+)$ /index2.php/$1
Now, move your index.php to index2.php. Create a redir.php file that contains only a redirection:
<? header( 'Location: /' . $_REQUEST['dest'] ); ?>
I am aware that phpwiki does support native link prettifying. However, I couldn’t get it to work and had to solve it in some way.
