How to Redirect Stack Domains (www to non-www)
Redirecting your domain from www to non-www (or vice versa) can be easily managed with Stack when using Cloudflare or Google Domains. Unfortunately, domain registrars like GoDaddy and Namecheap do not support redirects with paths, so you'll need to transfer your domain to Cloudflare or Google Domains to utilize this feature.
Transferring Your Domain
To get started, you'll need to transfer your domain to a compatible registrar:
- Transfer to Cloudflare: Follow the Cloudflare Transfer Guide.
- Transfer to Google Domains: Use the Google Domains Transfer Instructions.
Setting Up Redirects
Redirect www to non-www
-
Add CNAME Record:
- Point
wwwtoflash.funnels.msgsndr.com. - Set the Proxy Status to Proxied.
- Point
-
Add A Record:
- Point the non-www domain to
34.68.234.4. - Set the Proxy Status to DNS Only.
- Point the non-www domain to
-
Create a Page Rule:
- URL:
www.yourdomain.com/* - Setting: Forwarding URL → 301 - Permanent Redirect
- Destination URL:
https://yourdomain.com/$1
- URL:
-
Connect Domain in Stack:
- Go to Stack and connect your non-www domain to the desired funnel.
Redirect non-www to www
-
Add CNAME Record:
- Point
wwwtoflash.funnels.msgsndr.com. - Set the Proxy Status to DNS Only.
- Point
-
Add A Record:
- Point the non-www domain to
34.68.234.4. - Set the Proxy Status to Proxied.
- Point the non-www domain to
-
Create a Page Rule:
- URL:
yourdomain.com/* - Setting: Forwarding URL → 301 - Permanent Redirect
- Destination URL:
https://www.yourdomain.com/$1
- URL:
-
Connect Domain in Stack:
- Go to Stack and connect your www domain to the desired funnel.
Troubleshooting
Common Issue: Funnel Error Code 500
If you encounter a Funnel Error Code 500 with the message "Failed to execute 'appendChild' on 'Node'", follow these steps:
- Log in to Cloudflare.
- Select the domain experiencing the error.
- Navigate to the DNS tab in the left menu.
- Click on Edit next to the relevant record.
- Uncheck the Proxy Status option.
- Click Save.
By following these steps, you should be able to successfully manage your domain redirects within Stack. If you encounter any issues, ensure your domain settings are correctly configured and that you are using a compatible domain registrar.