**Title: How to Redirect Non-www to www in cPanel Using .htaccess: A Comprehensive Guide by Cpluz**
**Meta Description:** Learn how to seamlessly redirect non-www to www in cPanel using .htaccess with our step-by-step guide. Established in 1993, Cpluz—a leading design and printing company—shares its expertise, helping you build strong connections between your brand and human emotion.
—
**H1: How to Redirect Non-www to www in cPanel Using .htaccess**
Are you looking to enhance your website’s SEO by redirecting non-www to www? This step-by-step guide will walk you through the process, using the .htaccess file in cPanel.
**H2: Why Redirect Non-www to www?**
Redirecting non-www to www offers several benefits, including:
– **SEO:** Search engines like Google consider www and non-www as separate URLs, potentially splitting your link equity. Redirecting non-www to www consolidates your link equity, boosting your SEO.
– **Consistency:** Having a consistent URL structure makes it easier for users to remember and share your website.
**H2: Accessing Your .htaccess File**
First, log into your cPanel account and find the **File Manager**. Navigate to the **public_html** directory, right-click, and choose **Code Editor**.
**H2: Adding the Redirect Rule**
In the Code Editor, locate the .htaccess file or create a new one if it doesn’t exist. Paste the following code:
“`
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
“`
**H2: Understanding the Code**
– `RewriteEngine On`: Enables the rewriting engine.
– `RewriteCond %{HTTP_HOST} !^www\.`: Checks if the HTTP host doesn’t start with www (i.e., only non-www URLs).
– `RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]`: Redirects the non-www URL to the www URL with a 301 permanent redirect (helping SEO).
**H2: Saving and Applying Changes**
Save your changes and close the Code Editor. To apply the changes, refresh your .htaccess file by clicking the **Refresh** button in the File Manager.
**H2: Testing Your Redirect**
Visit your non-www URL and ensure you’re redirected to the www version. If you’re not, double-check your .htaccess file for any errors.
**H2: Wrapping Up**
At Cpluz, we’re more than a design and printing company—we’re your partner in building positive connections between your brand and human emotion. With over 28 years of experience, we offer a range of services, from logo design and graphic design to hosting servers, website design, and digital printing.
**H3: Connect with Cpluz**
Ready to take your brand to the next level? [Contact us today](https://www.cpluz.com/contact) to learn more about our services.
—
**Note:** This article has been optimized for the target keyword ‘How to Redirect Non-www to www in cPanel Using .htaccess’. Keywords such as ‘cPanel’, ‘.htaccess’, ‘SEO’, ‘website’, and ‘redirect’ have been strategically placed throughout the content to improve its search engine visibility, while avoiding keyword stuffing. Engaging, keyword-rich content has been provided to attract organic traffic and promote Cpluz’s expertise and services.