So right now I have a basic site engine and use mod_rewrite. I set my rewrite rule so that /cn/page.php becomes /?page=page. However, when I want to use /cn/scripts/page.php to have /cn/?page=page&dir=scripts (by adding another RewriteRule) this doesn't work. Now, I also, in my index page, use define('protected',true); then check if the page is defined on each php page. However, somehow, mod_rewrite doesn't like this, and the page keeps thinking that it isn't defined. Now, I also have to provide absolute urls for things since they cant be found without them, either. I'm using php4.2.2 and apache2. Any idea whats up or should I post the code? I've been at it for a few days and I'm lost!