I use RewriteCond %{SCRIPT_FILENAME} !-s in my rewrite rules. The problem is when file exists for example: www.domain.com/test.php it's accessible even without .php at the end - www.domain.com/test How can I fix this?? Thanks for your help