FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Custom Domain not working for www subdomains #4913

Open geret1 opened 5 days ago

geret1 commented 5 days ago

Can we access your project?

Current Behavior

When user with a custom domain try to access www.mydomain.com redirects to mydomain.com instead of keep in www

Expected Behavior

Keep www subdomain.

Steps to Reproduce

  1. Create a custom domain with www support
  2. Configure DNS records as suggested in FF (even proxy CNAME configuration that is not explained in the docs).
  3. Try

Reproducible from Blank

Bug Report Code (Required)

IT4kz/Ll8ZNIvulA187pbfowtDg7Q1g/TL07ttYbZxUjIuPtBJh/f8/BP01oQvW7dENhHFGLjToH0MLRkvDhDvA6aDeZR4B51od2TwvNTXq8Sq64ELuafHEkJJpWGhGZ1qaJ3xJ/AO5qLkYM12CQIOjIEzfcGZ+/Zwh9f6PHaOI=

Visual documentation

Screenshot 2024-11-16 at 09 30 24

Environment

- FlutterFlow version: FlutterFlow v5.0.10+ released November 15, 2024
- Flutter version is 3.24.2
- Platform: Web
- Browser name and version: Chrome (latest)
- Operating system and version affected: OS X

Additional Information

Documentation and UI is very poor here explaining actually nothing so users cannot help on that task.

Alezanello commented 1 day ago

Hello!

You can set up the custom domain directly with the www subdomain. This means the A record in your DNS settings would be www..com, and you won’t need to configure a CNAME record.

image.png

However, please note that even with this setup, the browser might display the domain without the www prefix until you double-click on it. I’ll share a GIF below to demonstrate this behavior.

domain.gif

Best regards,
Azanello

geret1 commented 1 day ago

Unfortunately developer tools are saying a different thing (screenshot attached).

Screenshot 2024-11-20 at 23 21 03

An initial request is made to www subdomain then, a 301 response code redirects to the A record. FF seems configured properly considering www subdomain (screenshot attached)

Screenshot 2024-11-20 at 23 26 44

However, I don't understand why FF suggest to create a CNAME record that points out to [*].custom-domain-proxy.flutterflow.app. Why do you need a proxy there?