Technically speaking, both www and non-www are 2 different websites and as such may be penalised by search engines for duplicated content. From an SEO perspective it is always best practice to redirect your non-www site URL to www or your wwww. to your non-www version.
Our site www.accrodigital.com, for example, has a redirection from non-www (http://accrodigital.com) to www (http://www.accrodigital.com). In other, everytime anyone type http://accrodigital.com will be redirected to www.accrodigital.com. Note the "www" in the second URL.
Technically, the non-www version and the www version are two different domains. So redirecting one to the other improves our SEO. Google and other search engines won't have to worry about two different domains.
This tutorial will show you how to redirect your whole website to either non-www or www.
Please note that you will need to find and access your htaccess file. It is located at the root of your website server.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
I hope that this tutorial will help you. Please leave your comment below if any.
Fabien Bello has been working in web and app develoment since 1997. He has held numerous positions from game developer to head of creative and product development for major firms such as Xerox, Gala Coral Group. Fabien continues contributing to online community, owns and manages several websites as well as offering consultancy to all size businesses.
pills erectile dysfunction ed drugs
best over the counter ed pills http://generictadalafil20.online/ ed treatment pills
men's ed pills best ed treatment pills
pills for erection otc ed pills
otc ed pills http://generictadalafil20.online/ best ed medications
top ed drugs best ed pills non prescription
online ed pills impotence pills
compare ed drugs http://generictadalafil20.online/ top erection pills
best drug for ed ed treatment review
hair loss cialis online pharmacy walgreens pharmacy
generic tadalafil generic tadalafil
is generic cialis safe http://generictadalafil20.com generic tadalafil
cialis online generic tadalafil 20mg
cialis black online Fosamax buy cialis on line [url=https://impotencecdny.com/]Sildigra[/url] ’
viagra 30 day free trial pharmacy tech viagra or viagra [url=http://erectilejyzd.com/]pharmacy drugstore online[/url] ’
cheap generic viagra buy generic viagra
viagra price comparison http://genericvgr.com generic viagra
genericVGR buy viagra online
viagra generic sildenafil
walmart viagra http://genericvgr.com buy sildenafil
buy cheap viagra buy viagra online
buy cheap viagra cheap generic viagra
viagra canada http://genericvgr.com buy cheap viagra
cheap sildenafil generic viagra
Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.