multiple domains under one site

i have two domains and one of them simply redirects to the other, i want them to share the same settings, is there a way to add them under the same site? if not does cf provide a way to sync up settings for multiple domains? it looks like something that'd be done pretty frequently
32 Replies
Soham
Soham14mo ago
If it just redirects then there's no need for any settings as the site it gets redirected to will handle everything
laralove
laralove14mo ago
ah i see, thank you
laralove
laralove14mo ago
hey sorry to bother, ive set up cname but its been hours and it still doesnt work (dig shows earlier records), am i doing something wrong or should i just wait first one points to 100:: because its only used for cf redirects currently
Chaika
Chaika14mo ago
what are you trying to do? You're cnaming everything in that domain to a differrent domain, which doesn't resolve to anything? If you want them to be redirects, define those redirects in that zone as well
laralove
laralove14mo ago
is that the only way to do that? they're the exact same so i dont wanna replicate everything
Chaika
Chaika14mo ago
you want laralove.gay and lara.lv to both redirect to something else?
laralove
laralove14mo ago
i want them both to redirect to the same thing basically laralove.gay redirects to github.com/laralove and i want lara.lv to also redirect to github.com/laralove this applies to every redirect isnt cname the option to go for when you want two domains to do the same thing
Chaika
Chaika14mo ago
ahh ok, yea you'd duplicate the redirects. You could redirect one site to another (like have all subdomains/paths from lara.lv go to laralove.gay), but then you'd have two hops Do the same thing? No... A CNAME is a "canonical redirect", basically saying "If you want an answer, go over here for DNS level stuff". In normal usage, you might have a few sites that CNAME to the same single site, which has A/AAAA records back to a web server, which accepts the host headers/urls/requests from the other domains. Put in simpler words, for web requests, its like saying "Ask the same web server as you do here, for a response, but from this domain"
laralove
laralove14mo ago
so the silver lining is cname doesnt work with cf redirects? i used silver lining wrongly there the takeaway is the word ig
Chaika
Chaika14mo ago
Basically. You'd probably just want to recreate the redirects, they wouldn't be the exact same, as the source url would at least be different. If you wanted more central management you could use Bulk Redirects which are account-wide, but you'd still need seperate entries for both sites
laralove
laralove14mo ago
thats unfortunate because i do have quite a few redirects
Chaika
Chaika14mo ago
you could create a worker that handles it all on both, but you'd be paying for worker invocations, or you could add a single redirect on lara.lv and redirect all requests to laralove.gay keeping subdomain/path
laralove
laralove14mo ago
thatd be a hop right? like a noticable hop from the user
Chaika
Chaika14mo ago
yea it's not the end of the world though, it'd be a bit slower sure, another dns resolution and request. Could the user notice it? Probably not
laralove
laralove14mo ago
basically lara.lv is just meant to be a shorthand could drop the first domain entirely if i listed every place i use it
Want results from more Discord servers?
Add your server