Berikut ini tips redirection website yang biasa di gunakan :

Tips Redirection Memaksa non-www ke www (https)

RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^ https://%2%{REQUEST_URI}[R=301,L]
Baca Juga : Cara mudah konfigurasi virtualhost di localhost XAMPP

Memaksa non-www ke www

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