RewriteEngine on 

#not a real file or directory
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]*|search/.*)$ index.php?s=$1

RewriteCond %{HTTP_HOST} !^www\.4ducky\.com$
RewriteRule ^ http://www.4ducky.com%{REQUEST_URI} [R=301]