Hello,
before WP 3.0.1 I was using the "Enforce www preference" plugin, by Mark Jaquith in order to enforce the non-use of www in my site. Now I notice that it is possible to call my site even using www. Is there a way to fix the problem and manage the redirection? In my WP Settings I set up my site without www.
# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule (.*) http://%1/$1 [R=301,L]
before the #start wordpress part of your .htaccess
I've added the rule, but unfortunately now I'm getting a URL exposing my wp-content directory, and the W3 Total Cache subdirectory...
As I suspected, there was a problem with W3TC. I've found a fix here.