Just copy and paste the code below into a new file at root level on the server called rewrite.script
Change the domain to your own and all non www will be forwarded to the correct URL, prevents duplicate content errors with Google!
match IN:Host into $ with ^mydomain\.ie$
match URL into $ with ^/(.*)$
set OUT:Location = http://www.mydomain.ie/$1
set OUT:Content-Type = text/html
set RESPONSE = 301
set BODY = Moved