diff --git a/www/index.php b/www/index.php
index ba2e73cc33e77590fcbef7a51a48e975deae01a6..9f3a6ace2dfd38dd39694c5c0a83d6788df394a2 100644
--- a/www/index.php
+++ b/www/index.php
@@ -3,7 +3,7 @@
  * This is the main file for the graduate catalog.
  */
 
-require_once '../config.inc.php';
+require_once dirname(__DIR__).'/config.inc.php';
 $catalog = new UNL_Catalog();
 $catalog->run();