non www to www

hii respected sir, i am hosting a WordPress website[itsallaboutwriting.com] on your server,
My issue is i am not able to open my website without www and i tried to make changes in .htaccess file so that i can redirect non-www to www
my .htaccess -
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[itsallaboutwriting.com [NC]
RewriteRule ^(.*)$ http://www.[itsallaboutwriting.com/$1 [L,R=301]

please help me out so that i can redirect non-www to www

I just checked your site but the redirect seems to be working fine for me. Save for the [ before the domain name it looks OK.

@Rajneesh said:
hii respected sir, i am hosting a WordPress website[itsallaboutwriting.com] on your server,
My issue is i am not able to open my website without www and i tried to make changes in .htaccess file so that i can redirect non-www to www
my .htaccess -
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[itsallaboutwriting.com [NC]
RewriteRule ^(.*)$ http://www.[itsallaboutwriting.com/$1 [L,R=301]

please help me out so that i can redirect non-www to www

Why you want to redirect non-www to www why don’t redirect www to non-www as everyone knows that www is a subdomain of your main domain why you want to redirect naked domain to a www subdomain.
A URL consists 3 to 4 parts
https://www.domain.com

  1. http/https : Shows the security of your website (SSL/TLS certificate)
  2. www: is the subdomain of domain.com
  3. domain : domain is the actually your real domain that you register
  4. .com : .com is the Top Level Domain that may represents the GEOs or status of website

After all I think should be transfer www to non-www to make it easier and high quality.

1 Like