Removing all www. and redirect to no www.

with 4 Comments

I am reworking the WordPress Gamot Global Translator Plugin for my MultiSite install and I found a need to use the domain name as a file directory for my cache files. Then I though about that I will end up with two copies of my cache, one with a www and one without. I realized that I needed to groom the $_SERVER[‘SERVER_NAME’] variable but… How?

1 3 4 5 6