On a Unix machine, adding that code to every page is silly... you would just add something different to the .htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://www.domain.com/ [R=301,L]
And this will route the domain.com and /index.html to www.domain.com
On Windows she's dealing with IIS which can certainly run PHP so adding the above should work, but best option is here: http://serverfault.com/questions/225...-www-in-iis7-5