-
Hi, I just configured the DNS for my domain (http://jackberingen.com) to redirect to my GitHub pages site. However, I am still able to access a broken version of the site by going to http://jackberingen.github.io/ which I do not want to be able to do. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I have the same problem with my betting sites comparison website https://www.wettenerfahrungen.com. I’m not sure if it has something to do with the DNS configuration or with the programming code of my website. But I’m open for any solutions. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I’ve fixed the problem, however, not how I would have liked to (without tampering with the actual website). Regardless, I’ve added a URL check which ensures the user is using the correct address within the index.js file of my React project. Even if you’re not using React, you can still place this code anywhere as long as it runs when the page initializes. I’ve included a commented version of the code below, but again, you’ll need to adapt this for your URLs and if you’re not using React.
Hope this helps! :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Hey @jackberingen, Thanks for coming back to share what worked for you! |
Beta Was this translation helpful? Give feedback.
I’ve fixed the problem, however, not how I would have liked to (without tampering with the actual website). Regardless, I’ve added a URL check which ensures the user is using the correct address within the index.js file of my React project. Even if you’re not using React, you can still place this code anywhere as long as it runs when the page initializes. I’ve included a commented version of the code below, but again, you’ll need to adapt this for your URLs and if you’re not using React.