This rule: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] could be done like this: error_page 404 = /index.php?q=$1; -- Posted via http://www.ruby-forum.com/.