Thursday, August 6, 2015

Redirect Drupal to remove www

q: Customer called today about a new Drupal site.  They want to 301 redirect all traffic hitting their full domain eg: www.lazyjeff.com to just the root domain eg: lazyjeff.com.

a: This can be done two major ways using .htaccess (non-windows) or URL Rewrite in IIS/Windows.  However, we found an easier way using a Drupal Module.  We installed this module, enabled it, configured it to have a status of (X) Enabled and the short version of the URL in the domain value and it worked.  Good job Drupal.

https://www.drupal.org/project/domain_301_redirect


No comments:

Post a Comment