Saturday, June 13, 2020

Redirect www to apex domain

This is also to solve certificate error in case DNS Name from certificate only contains apex domain.

To quickly solve this, following redirect is needed - e.g. for domain easybiny.com:

RewriteEngine on
RewriteCond %{SERVER_NAME} =www.easybiny.com
RewriteRule ^ https://easybiny.com%{REQUEST_URI} [END,NE,R=permanent]

No comments:

Post a Comment