fixed wrong root path for static files when using requesting /path/index.php/