WWW redirect with .htaccess in cPanel

You can redirect your non www domain to www domain with this code. Just change your website url from aunonno.com and then save in your .htaccess file.
[code]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^aunonno.com [NC]
RewriteRule ^(.*)$ https://www.aunonno.com/$1 [L,R=301,NC]

[/code]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.