RewriteEngine On RewriteBase /cron/ RewriteRule /cron/.* - [L] RewriteBase / RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)|(\.pdf)$ RewriteCond %{REQUEST_URI} ^(.*)$ #RewriteCond %{REQUEST_URI} !^cron$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* www.doobla.com/%1 [L]