# How to redirect from non www to www?

**URL:** <https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795>\
**Category:** Questions / Help\
**Created:** [June 28, 2022, 6:26am UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795 "2022-06-28T06:26:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bangun](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/bangun/32/4115_2.png) [@bangun](https://community.fly.io/u/bangun)\
**Post date:** [June 28, 2022, 6:26am UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/1 "2022-06-28T06:26:14Z")

</div>

On Render, they give us new A (@) record to redirect from non www to www  
Is there any similar method provided in Fly?

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [June 28, 2022, 6:30pm UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/2 "2022-06-28T18:30:59Z")

</div>

Currently, the only way to do this is by implementing the redirection logic in your app directly.

Can you tell us more about how this work with Render? Do they have a service dedicated to redirecting non-www requests to www locations?

---

<div class="post-metadata">

**Author:** ![bangun](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/bangun/32/4115_2.png) [@bangun](https://community.fly.io/u/bangun)\
**Post date:** [June 28, 2022, 11:03pm UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/3 "2022-06-28T23:03:29Z")

</div>

When we create an app in Render, they always give us 2 step for the certs

1. Is for CNAME record
2. Is for A record (for them to redirect from non www to www)

See this example

 ![image](https://global.discourse-cdn.com/fly1/original/3X/3/9/39dcccbf23b042ae30e0701ed11282e65badc17f.jpeg)

Docs:

> **[Custom Domains | Render Docs](https://docs.render.com/custom-domains)**
>
> Render handles TLS certificate creation and renewal, as well as automatic HTTP to HTTPS redirects for all your custom domains, including wildcard domains.

> **[Configuring Namecheap DNS | Render Docs](https://docs.render.com/configure-namecheap-dns)**
>
> Set up the correct Namecheap DNS configuration to point to your Render app with this guide.

---

<div class="post-metadata">

**Author:** ![woutercouvaras](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/woutercouvaras/32/6957_2.png) [@woutercouvaras](https://community.fly.io/u/woutercouvaras)\
**Post date:** [November 10, 2022, 11:35am UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/4 "2022-11-10T11:35:31Z")

</div>

I’d really like to see this too!

---

<div class="post-metadata">

**Author:** ![brunoprietog](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/brunoprietog/32/9196_2.png) [@brunoprietog](https://community.fly.io/u/brunoprietog)\
**Post date:** [November 11, 2022, 3:14pm UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/5 "2022-11-11T15:14:23Z")

</div>

I use Cloudflare for this.

[Redirect www.example.com to example.com - Tutorial - Cloudflare Community](https://community.cloudflare.com/t/redirect-www-example-com-to-example-com/78347)

Or

[Redirect example.com to www.example.com - Tutorial - Cloudflare Community](https://community.cloudflare.com/t/redirect-example-com-to-www-example-com/78348)

---

<div class="post-metadata">

**Author:** ![sergio](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/sergio/32/44841_2.png) [@sergio](https://community.fly.io/u/sergio)\
**Post date:** [December 19, 2022, 5:25pm UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/6 "2022-12-19T17:25:23Z")

</div>

Have to do this just now - what’s the canonical way to do this with Fly?

---

<div class="post-metadata">

**Author:** ![iggyzuk](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/iggyzuk/32/18738_2.png) [@iggyzuk](https://community.fly.io/u/iggyzuk)\
**Post date:** [March 23, 2024, 10:03am UTC](https://community.fly.io/t/how-to-redirect-from-non-www-to-www/5795/7 "2024-03-23T10:03:19Z")

</div>

Any news on this? or must I still implement it manually in the app logic?
