Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want my domains to be rewrited to www (so a.com will become www.a.com)
My settings:
Domain list
a.com (default)
b.com
WWW prefix handling:
Process all host requests normally
Domain Aliases:
redirect: enabled
pattern: www.a.com
.htaccess
I have (not yet) uncommented any www rewriting.
With above settings going to www.a.com results in a rewrite to a.com.
I tried suggestions in this comment https://drupal.org/node/541176#comment-1897306 hoping this would apply for 7.x version but no luck.
Thanks for any help in advance
Comments
Comment #1
agentrickardReverse the alias / canonical pattern.
Domain list
www.a.com
www.b.com
Domain Aliases
a.com [redirect to www.a.com]
Or have www.a.com as an alias with no redirect, and do the rewrite in .htaccess.