BaZaRRe
01-29-2005, 03:45 AM
I was wondering how I could use ModRewrite to communicate with a PHP script which will display a file included by that php script. So that instead of index.php?pagename=something its /something.... Also so that if there is a way of index.php?pagename=something?act=something using the following function:
function load_code($act, $act2) {
global $config, $db, $user;
if (!file_exists("$config->files_directory/$act/$act2.php")) {
error("normal", "The requested page was not found.");
}
return "$config->files_directory/$act/$act2";
}
Modify it in any way to work, i just need help ;)
function load_code($act, $act2) {
global $config, $db, $user;
if (!file_exists("$config->files_directory/$act/$act2.php")) {
error("normal", "The requested page was not found.");
}
return "$config->files_directory/$act/$act2";
}
Modify it in any way to work, i just need help ;)
