Website not getting redirected from non-www to www URL

I am getting the error “This page is unavailable”, when I am opening my website without “www”. the website [] loads perfectly otherwise:

  1. (Website Loads Fine)
  2. (Website Loads Fine)
  3. (Website Loads Fine)
  4. (Website Loads Fine)
  5. (Error: “This page is unavailable”)
  6. (Error: “This page is unavailable”)

I have already tried the following solutions, which didn’t help:

  1. I have added “A” Record in DNS pointing “www” to the hosting IP
  2. I have added the following code in the .htaccess file of the website
    RewriteCond %{HTTP_HOST} ^example\.in$
    RewriteRule ^/?$ "https\:\/\/www\.example\.in\/" [R=301,L]


Thank you for asking.

May I ask if the redirection is working at your origin host/server when Cloudflare is “Paused” for your Website? :thinking:

May I ask you to post and share your domain name in bracketed dot [.] notation here with us so we could double-check, troubleshoot and provide some feedback information? :thinking:

Otherwise, to achieve it you’d have to have:

  1. Both naked-domain hostname (DNS record and www added to the DNS tab of Cloudflare dashboard
  2. Make sure they’re proxied :orange:
  3. Use either Page Rules or Transform Rules, or even Bulk Redirects, depending on the case

Useful article with step-by-step tutorials:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.