How to Redirect Your Non-WWW Domain to WWW in Godaddy

If you’ve ever tried to install Homebrew on your Mac, you might have encountered a frustrating issue where, after running the installation command, you attempt to check the version of Homebrew only to be met with a “command not found” error. This can be perplexing, especially if you followed the instructions to the letter.

When you set up a website, one of the decisions you’ll face is whether to use the “www” prefix or not. For example, should your website be accessible at example.com or www.example.com? While either option works, it’s crucial to ensure that both URLs don’t lead to duplicate content issues. The best practice is to redirect your naked domain (the version without “www”) to the www version. Let’s explore why this is important and how you can set it up.

Why Redirect Your Naked Domain to WWW?

  1. Consistency and Branding: Using a single domain format ensures that users always see the same URL in their browser’s address bar, reinforcing your brand.

  2. Avoid Duplicate Content: If both example.com and www.example.com serve the same content, search engines might penalize your site for duplicate content. Redirecting the naked domain to the www version avoids this issue.

  3. Cookie Handling: Some web applications handle cookies differently depending on whether you’re using the naked domain or the www version. Redirecting helps maintain consistent behavior across your site.

  4. Security: When implementing SSL/TLS certificates, handling the www version is often simpler, and a redirect ensures your site is always secure under the same domain.

How to Redirect a Naked Domain to WWW

If your domain is registered and hosted with GoDaddy, you can easily set up a redirect from the naked domain to the www version using GoDaddy’s built-in tools. Here’s how:

1. Click on My Account

account

2. Click on My Products

Products

3. Click on Domains

Domains

4. Click on sabethotel.com

sabet hotel

5. Click on DNS

DNS

6. Click on Forwarding

Forwarding

7. Click on Add Forwarding

Add forwarding

8. Select https://

Select https

9. Type “www.sabethotel.com

Type domain with www

10. Click on Save

Save

11. Look at your saved forwarding

Look

A Common mistake When Installing Homebrew on macOS (and How to Avoid It)
Excalidraw Website Wireframe Template