Skip to main content
added 129 characters in body
Source Link
Triskelion
  • 4.9k
  • 2
  • 19
  • 23

Uncomment lines 93 and 94 in the .htaccess file that comes with Drupal in the web root.

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewiteRule ^ http://%1%{REQUEST_URI} [L,R=301]

EDIT: If the certificate requires https, edit the second line to read:

RewiteRule ^ https://%1%{REQUEST_URI} [L,R=301]

Uncomment lines 93 and 94 in the .htaccess file that comes with Drupal in the web root.

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewiteRule ^ http://%1%{REQUEST_URI} [L,R=301]

Uncomment lines 93 and 94 in the .htaccess file that comes with Drupal in the web root.

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewiteRule ^ http://%1%{REQUEST_URI} [L,R=301]

EDIT: If the certificate requires https, edit the second line to read:

RewiteRule ^ https://%1%{REQUEST_URI} [L,R=301]
Source Link
Triskelion
  • 4.9k
  • 2
  • 19
  • 23

Uncomment lines 93 and 94 in the .htaccess file that comes with Drupal in the web root.

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewiteRule ^ http://%1%{REQUEST_URI} [L,R=301]