1
I use this, before header include of each page of modules you want to rewrite :
This code provide from Gijoe tinyD.
// check modulesless rewrite
if( ! empty( $_SERVER['REQUEST_URI'] ) && ! stristr( $_SERVER['REQUEST_URI'] , 'modules' ) ) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] ;
}
include 'header.php';
This code provide from Gijoe tinyD.