• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
downloadbytes

DownloadBytes.com

Download Free Software

  • Home
  • Software
    • Antivirus
    • Graphics
    • Internet
    • Multimedia
    • Office
    • Utilities
  • Games
  • Operating Systems
  • Blog

How To Redirect WWW to NON-WWW without .htaccess

November 13, 2019 by admin 1 Comment

Redirecting WWW to NON-WWW URLs might be an easy task for professionals but for beginners, it is a very time consuming and hectic process using .htaccess file.

As most of the bloggers are new in this field and sometimes they even don’t know where to locate .htaccess file or how to connect to their server or shared hosting.

Why do you need domain redirection?

WWW and NON-WWW are two different domains for Google. If you do not use redirection it will affect your website SEO and user experience.

Let say you have installed your site on http://example.com, Now if a user visits http://www.example.com he will see “website not found” error because there is no website on www subdomain. To forced redirect of www URLs to non-www URLs, it needs a redirection rule so that the user lands on the right destination even if he types www URLs of the website.

redirect domain using DNS

Easy way to achieve domain redirection from WWW to NON-WWW and NON-WWW to WWW.

Important: WWW to NON-WWW redirection will work only if the website is installed on the NON-WWW version.

Now if you have your website installed on the NON-WWW version of the domain and you want to redirect WWW URLs to NON-WWW URLs then follow these steps.

Redirecting WWW URLs to NON-WWW URLs using the DNS setting.

This method is the easiest one because everybody has control of their domain management account and they can easily reach there.

Here I am Taking Namecheap domain account for demonstration but it can work for all the domain registrars e.g. Bluehost, Hostgator, Godaddy, etc.

  1. Login to your domain registrar account.

    Go to DOMAINS where you can list of domains you own. And click on MANAGE next to your target domain.

  2. Now go to ADVANCED DNS SETTING

    Click on ADVANCED DNS

  3. Create a CNAME record

    HereClick on ADD NEW RECORD
    Under TYPE select CNAME RECORD
    Under HOST type www
    In VALUE type your domain name without www and click save.

Now all the steps are completed please wait for few minutes as domain propagation takes some time. Don’t forget to clear your web browser cache and cookies before testing redirection.

You can also check your domain redirection using an online tool Whatsmydns. Type your domain with www prefix e.g. www.yoursite.com and select CNAME in the second field. And click on the Search button.

As in my case, you can see in the picture below my www URL is successfully redirecting to the non-www version.

If you have your website installed on the WWW version of the domain and you want to redirect NON-WWW URLs to WWW URLs then follow these steps.

Important: NON-WWW to WWW redirection will work only if the website is installed on WWW version

Redirecting NON-WWW URLs to WWW URLs using the DNS setting.

The First and the Seconds steps are similar as in the previous case.

In the third step, you will make some changes

NON-WWW-to-WWW

As shown in the above picture

  1. Edit the A Record, in the HOST field put WWW and in the value field put the IP address of your server.
  2. Create a new CNAME Record and type @ in the Host field and in the value type the domain name as www.yourdomain.com.

Now all the steps are completed please wait for few minutes as domain propagation takes some time.

Share this:

  • Tweet
  • WhatsApp

Related

Filed Under: Blog

Reader Interactions

Comments

  1. Alex Shaw says

    June 2, 2020 at 10:28 am

    Hey, admin, that is a great article. Even the few professionals even did not know about that procedure. Thanks for sharing, making the process easy for the beginner like me. And check that tool https://dnschecker.org/ as well for DNS propagation, as an alternative to whatsmydns.net.Must check it out, that tool provides more detailed propagation results.

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Popular Software

  • Super Mario Game Download For PC
  • Need For Speed Most Wanted Game Download
  • GTA: San Andreas PC Game Free Download
  • Windows XP Home free download

Join Our Newsletter

Enter your email address to subscribe to this site.

Follow Us

  • Facebook
  • Twitter
  • YouTube

Footer

HOME  |   ABOUT  |  EULA  |  DISCLAIMER  |  PRIVACY  |  CONTACT
SSL Secure
Privacy & Cookies: This site uses cookies to enhance user experience. To find out more, see here Cookie Policy

Copyright © 2021 ยท [DownloadBytes.com]