Hello guys,
I'm trying to figure it out how to set up an .htaccess set of rules that would force the presence of the "www" in front of the domain if it is not initially specified, but at the same time, it will not have any effect if the an subdomain is pressent; all this without hard coding any domain name so that the script is portable around different servers and configurations.
Thank you in advance for your support,
Constantin TOVISI
EDIT:
I'm sorry I was not able to get this explained right in the fist place. So what I need is as follows:
http://example.com -> redirects to http://www.example.com
http://www.example.com -> does not redirect
http://subdomain.example.com -> does not redirect