These problems occur whenever .htaccess is set to reroute all traffic from http://example.com to http://www.example.com. I tested this behavior on a clean installation. To reproduce the error on the taxonomy module:

I didn't know whether I should have posted this into Drupal core or not, because it involves two modules. I've ran into two problems so far:

  1. The autocomplete feature of the taxonomy "tags" feature fails to work.
  2. The Views module sends me to an odd http page that looks like an Ajax request every time I update a filter, argument, field, etc. before saving.

The taxonomy problem is bearable, but the problem with Views is making it increasingly annoying to create or update any and all views.

  1. Start with a clean installation of Drupal.
  2. Go to the non "www" version of the site. Create a vocabulary, enable the free tagging feature, and create a few stories to ensure that autocomplete works.
  3. Set .htaccess to redirect example.com to www.example.com.
  4. Try creating a new story. The autocomplete feature should now fail. IE7 reports an error.

PHP: 5.2.6
Drupal path: site root (e.g. public_html)

Thanks!

Comments

savioret’s picture

I have also found this problem, and my solution was always removing www
Is there any new ?

dddave’s picture

@ could you please confirm that this issue still exists with the current version of D6 and update the version info or change the status?

Anonymous’s picture

Status: Active » Closed (fixed)

This is what I have in .htaccess in Drupal 6.20. Taxonomy and views modules work normally.

 # If your site can be accessed both with and without the 'www.' prefix, you
 # can use one of the following settings to redirect users to your preferred
 # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
 #
 # To redirect all users to access the site WITH the 'www.' prefix,
 # (http://example.com/... will be redirected to http://www.example.com/...)
 # uncomment the following:

 # RewriteCond %{HTTP_HOST} !^www\. [NC]
 # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

Marking as fixed. Please feel free to re-open if the issue persists.