Yes, I have a PhpWiki:PrettyWiki!

I’ve finally managed to get the PhpWiki:PrettyWiki concept to work here at GimpsterDotCom. The idea is, that the URLs used to access the WikiWikiWeb should look like

http://www.gimpster.com/wiki/SomePage/SomeSubPage

instead of

http://www.gimpster.com/phpwiki/index.php/SomePage/SomeSubPage

I’ve been playing with the settings in index.php for some time now, but today I made it work. The necessary changes turned out to be:

ini_set('include_path', $_SERVER['DOCUMENT_ROOT'] . ‘/phpwiki’);
if (!defined(’SCRIPT_NAME’)) define(’SCRIPT_NAME’, ‘/wiki’);
if (!defined(’DATA_PATH’)) define(’DATA_PATH’, ‘/phpwiki’);
if (!defined(’PHPWIKI_DIR’)) define(’PHPWIKI_DIR’, $_SERVER['DOCUMENT_ROOT'] . ‘/phpwiki’);

The file /wiki is then a symbolic link to /phpwiki/index.php. If you discover any problems with this new URL-scheme, then please mail me.

Leave a comment