Note: For this post, I had to replace .viewyourtour.com for .SITEURL because there’s a limit on how many urls you can include in a post.
I have a Netlify react site that uses the first subdomain as the argument for what info to pull from my API. They work perfectly.
Live sites include:
For internal dev/qa purposes, I’d need to be able to add my subdomain argument to the branch url. For instance, my dev ‘r-v1_1’ branch, has a url of ‘r-v1-1.SITEURL’, which is accessible but has no real value, since there isn’t a valid API argument in the url. I believe I need ‘CUSTOMSUBDOMAIN.r-v1-1.SITEURL’ to be a masked redirect to ‘r-v1-1.SITEURL’.
URLs I need include:
My DNS is controlled through Netlify. I’ve tried creating a CNAME record for ‘still-hopes.r-v1-1.viewyourtour.com’ that points to ‘r-v1-1.viewyourtour.com’ but I just continue to get a Not Found error. For funsies, I also did the same thing with an ALIAS record. No luck.
Is what I’m trying to do possible? If so, how do I do it?