I have looked up all the posts related to this and I don’t understand what was done and not sure it matches this situation.
On the DNS at CF I have (using fake names):
foo.pages.dev (using the beta static site deployment at CF)
and have associated the “private domain” with the deployed site through the pages settings.
That works great.
Now, here is the hard part. At the original hoster (of
pretty.com) is still a wordpress site that is a subdirectory of the previous host for
pretty.com. Let’s call it
I am happy to use any way of reaching the former
pretty.com/bar but I don’t want to rehost it (just lots of additional sysops work I’d just as soon not do). The reason is that no user will ever need to type the url into a browser. They will click on a link on a page of my new
foo.com. So, I can make the ref of the link anything I want.
Based on a tutorial post in the CF community here is what I did–that does not work:
create A record to
bar.pretty.com to the IP address of the root for the previous hoster.
create a page rule for
bar.pretty.com to forward to
https://pretty.com/bar. This is the only place we reference the target subdirectory. I would be happy to dispense with the page rule and use:
bar.pretty.com/bar because I’ll enter the link ref on a page of the new site. Would this work?
I am little confused because this might not be possible. We need to get to a subdirectory of public_html of the former hoster. Only the former hoster can do that routing. There is no way to do 22.214.171.124/bar. IP addresses are to sites, not folders in the file system at the site.
So there needs to be an url (text name) to the host. Then it should be possible to add the /bar directory reference to the url to form a link. Does the url need to be different than
pretty.com (the desired url) and hosted in the DNS of the old wordpress hoster?
The post below seems to suggest I can use a subdomain created here at CF for this url. But, it doesn’t seem to work.
Thanks for your help.