How to Redirect non-www to www URLs

In this post, We going to see how to redirect non-www to www URLs. If would you like to redirect all non-www request to www you must use the proper rewrite code in your .htaccess file. In your public_html root folder, you can edit the file and add the proper code to redirect the non-www to www request. Right click and edit your .htaccess file in Editor view and add the following code with the exact domain name to rather then

Here below the code:

After you edit the code, Click and save the changes.

Was this article helpful?

Yes No

How can we improve it?


We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest


Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top


Get notified about the next update

Pin It on Pinterest