A client is asking if I can force www to embed in their company web address if somebody types http://thecompany.com. So, if someone enters that, she wants it to default to http://www.thecompany.com . Any suggestions on the server/hosting side?
.htaccess RewriteEngine on Options +FollowSymlinks Rewritecond %{http_host} ^yourdomain.com Rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc] Code (markup): hope this helps!
Assuming apache webserver. http://snipplr.com/view/4604/force-www-in-url/ Google for 'apache force www' for other suggestions.
Sorry about not giving the details on this situation. They are using an IIS, not Apache so I don't believe the htaccess will help me here. Can anybody help me out with the process in IIS to get this done?
Some quick googling shows me this: http://ynrajasekhar.blogspot.com/2008/10/force-website-to-use-www-using-iis.html I think that's just for the home page though. Can't get past the "force ssl" topics and removing ssl from the search just pulls up garbage as far as I see.