How to Redirect Non-www to www URLs in .htaccess?
If you own a website, you might be wondering if using a www or non-www domain is simply a matter of user preference. However, a non-www domain has some disadvantages over a www domain. When search engines index a site, a www domain prevents split page rankings, split inbound links, and duplication of content. This improves your site's search engine optimization (SEO) . The process of redirecting a non-www URL to a www URL may appear daunting, but it's not so complicated. Read on to learn three methods of redirecting If you are a beginner, it is recommended that you use the Redirect settings or edit the .htaccess file to redirect non-www to www URLs.
The Purpose of Redirecting Non-www URLs to www
There are some drawbacks to sticking with a non-www domain, including no overload protection and no control over cookies. CNAME records are not available for non-www domains, so you cannot redirect traffic from them to a healthy server if your server becomes overloaded. In this ca...