Started site with IP address now domain name doesn't render pages
I started building a site within perch behind my ip address as the domain name is controlled by my client. He has now pointed the domain name to the hosting server. But when I want to preview pages or see pages as a direct link they do not appear.
Here is an example: This was a template page I created to base all code for new articles on. https://22.214.171.124/~jfoutorg/article-template.php
Now here is the page under the actual hosted name: https://j4t.org/article-template.php
How do I fix this so all pages work under the correct domain?
After some playing around it seems I broke both pages.