RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^$ /nodes.php?node_id=1
+ #base36
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^k/([0-9a-zA-Z]+)/?$ /nodes.php?node_kid=$1 [L]
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^k/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)/(.+)/?$ /nodes.php?node_kid=$1&template_kid=$2&magic_word=$3 [L]
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^k/([0-9a-zA-Z]+)/(.+)/?$ /nodes.php?node_kid=$1&template_kid=$2 [L]
+
+
Options Indexes FollowSymLinks
AllowOverride All #None
print_r($_SESSION);
}
+//Base36 http://en.wikipedia.org/wiki/Base_36 (Initial support only :-)
+if(isset($_GET['node_kid'])) $_GET['node_id'] = base_convert($_GET['node_kid'], 36, 10);
+if(isset($_GET['template_kid'])) $_GET['template_id'] = base_convert($_GET['template_kid'], 36, 10);
+
//requiring main config file with path/database etc. constants
require('config/config.inc');
require(INCLUDE_DIR.'senate.inc');