I want to get rid of the "www" in front of my domain, and I'm trying the following, but it's not working:
RewriteEngine On
RewriteCond %{HTTP_POST} ^www\.example\.com [NC]
RewriteRule ^/(.*) http://example.com/$1 [L,R]
Basically, what I hope to accomplish is that someone going to "www.example.com" would be redirected to "example.com."
Any ideas as to what I'm doing wrong?
I've even tried substituting the second line for this:
RewriteCond %{HTTP_POST} www\.example\.com [NC]