How to point non-www domain to www

Posted February 23, 2021 348 views
Ruby on RailsNetworking


I have a Rails app deployed to the DO App Platform and I added my custom domain and pointed the name servers to DO. But the problem is that I want any requests coming to to be redirected to, and I already configured the app to handle this 301 redirect. But I still couldn’t get this to work.

I’m aware that there are many other posts about this problem but none of them helped me. Any ideas?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hello, @bikmazefe

I believe a similar question was asked before in our community. You can check the original question here:


Hi @bikmazefe

At the moment it’s kind of tricky to have to redirect. There are multiple questions where this has been asked. Just like Alexdo has provided you with some similar questions here are a bit more that can help you in your search: