diff --git a/codepot/etc/codepot.ini.in b/codepot/etc/codepot.ini.in
index bfac2965..f1e500aa 100644
--- a/codepot/etc/codepot.ini.in
+++ b/codepot/etc/codepot.ini.in
@@ -40,6 +40,14 @@ ldap_admin_password = ""
;------------------------------------------------------------------------------
language = "auto"
+
+;------------------------------------------------------------------------------
+; Name of the index page. If you want to hide the index page name from
+; the URL by rewriting it (e.g. mod_rewrite), you have to change this
+; properly to match the rewriting rule
+;------------------------------------------------------------------------------
+index_page = "index.php"
+
;------------------------------------------------------------------------------
; When set to yes, viewing pages require a user to sign in.
;------------------------------------------------------------------------------
diff --git a/codepot/src/codepot/config/config.php b/codepot/src/codepot/config/config.php
index 0e786568..e38ab2d0 100644
--- a/codepot/src/codepot/config/config.php
+++ b/codepot/src/codepot/config/config.php
@@ -26,7 +26,7 @@ $config['base_url'] .= preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME']))
| variable so that it is blank.
|
*/
-$config['index_page'] = "index.php";
+$config['index_page'] = CODEPOT_INDEX_PAGE;
/*
|--------------------------------------------------------------------------
@@ -126,7 +126,7 @@ $config['subclass_prefix'] = 'MY_';
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
-$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
+$config['permitted_uri_chars'] = 'a-z 0-9~%.:_@\-';
/*
diff --git a/codepot/src/codepot/config/routes.php b/codepot/src/codepot/config/routes.php
index c82aac08..18d401ba 100644
--- a/codepot/src/codepot/config/routes.php
+++ b/codepot/src/codepot/config/routes.php
@@ -43,6 +43,7 @@
$route['default_controller'] = "site";
$route['scaffolding_trigger'] = "";
+$route['@(.+)'] = "project/home/$1";
/* End of file routes.php */
/* Location: ./system/application/config/routes.php */
diff --git a/codepot/src/codepot/controllers/site.php b/codepot/src/codepot/controllers/site.php
index 5cc4f52d..bd9e74fc 100644
--- a/codepot/src/codepot/controllers/site.php
+++ b/codepot/src/codepot/controllers/site.php
@@ -474,7 +474,6 @@ class Site extends Controller
redirect ("wiki/attachment/{$part[0]}/{$hexwikiname}/{$hexattname}");
}
}
-
}
?>
diff --git a/codepot/src/codepot/views/code_blame.php b/codepot/src/codepot/views/code_blame.php
index 0ab7263a..cea026be 100644
--- a/codepot/src/codepot/views/code_blame.php
+++ b/codepot/src/codepot/views/code_blame.php
@@ -2,18 +2,20 @@