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 [https://www.epoxyadhesiveglue.com/] loads perfectly otherwise:

  1. example.in (Website Loads Fine)
  2. www.example.in (Website Loads Fine)
  3. http://www.example.in (Website Loads Fine)
  4. https://www.example.in (Website Loads Fine)
  5. http://example.in (Error: “This page is unavailable”)
  6. https://example.in (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]

Greetings,

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 example.com) 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.