RewriteEngine on RewriteBase /wellrested/samples/apisample/ # Send all requests to non-regular files and directories to router.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.+$ index.php [L,QSA]