Hey thanks for the super helpful reply. I’m not sure how I missed that thread. I haven’t quite mastered the search function on here. I think I’ll pass with him this time around. If i want any further guideline we will contact you here https://discuss.frappe.io/t/change-site-name/88710/2-results.
Thanks
@megha007
What I understand is that you created the new site with the name: “erp.mydomain.in”,
Then by renaming the same site path folder, you changed the site name to: “erp”…
What happened is that the name of the site folder has become different from the name of the domain… so it tells you that the link is invalid…
You need to make the site folder name and domain name the same.
However, I think the following can solve the problem.
Please, do the following:
Go to the site path folder, and in the site_config.json file, add this line:
“host_name”: “erp.mydomain.in”
e.g.
{
“db_name”: “…”,
“db_password”: “…”,
“host_name”: “your_domain”,
}
You don’t need to do this.
I even created site using generic name suffix .site and add 2 domains to each site, e.g myerp.com and myerp.net so it can be accessed from either domain.
note: you don’t even need to use the dot domain style for site name (folder). You can just use mysite1, mysite2, etc.
This is the purpose of the bench setup add-domain command.