How to make glitch HTML pages change to a new custom domain I pointed it to?

I have created a glitch website and bought a custom domain. I have followed the tutorial [here] and successfully point the domain name to my Glitch.me site. However, buttons on index.html don’t open pages with URL that suppose to be my domain name but, instead stuck with the glitch.me url. FYI, these buttons are made with p5.js button.

For example:
my domian is abcd.com
it should be abcd.com/pages2
but it goes to abcd.gllitch.me/pages.html

I have tried several ways like, added/remove https://, added and remove .html, etc. on the code of p5.js window.open.

Is this somthing happen because of cache and I have to wait, or something I need to add on the domain registar site/Fastly?

Thanks in advance.

Hi there, couple of things to check:

Is abcd.glitch.me the actual address of your Glitch website rather than an example you chose? If this is your project it isn’t actually running so you would need to address that first. If this isn’t your project can you share the glitch.me address of the one you are working with?

When you say you’ve followed the tutorial – have you created a Fastly service for your project?

can you change the button to go to abcd.com?

Oh! Those were example title. Sorry for the confusion. Anyhow, I have found the solution that I need to purge the site from Fastly side and the DNS settings site side because both of them keep cache and don’t update them instantly.

In my case, I purchase the domain name from one site and they only provide name server for the settings so I need another DNS settings site to operate the CNAME and whatever. And, I’m using Cloudflare for that now.

In conclusion, My Domain is register to one and the DNS is set using Cloudflare. I manage to point my domain to Glitch using Fastly.

And, in this way means that every time I need to update something I will have to ‘purge’ the page and, wait a minute to see the live-action on the actual page However, on my Glitch.me, I still can see everything change instantly.

1 Like

that was the issue! I could not see any change from the web tho I’ve change it on glitch!.. anyway, the solution i found is replied to sue-smith.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.