[ad_1]
[ad_2]
I've got a WordPress site hosted on a subdomain on InMotion hosting. When I create an About page the link is subdomain.com.maindomain.com/about. How do I change that link to subdomain.com/about? I've checked the code and I do not see where to change the link address. I am using 2024 theme.
The link cannot be subdomain.com because that’s not a subdomain. If is it directly to the left of the ”.com” (or .net, .io, or any other TLD) it is a domain, and needs to be registered/purchased.
A subdomain is anything to the left of the second dot (from the right) in a web address. It hangs off the domain and so you can create as many as you want.
To do what want you need to register “subdomain” and then in the DNS settings point to your site with either an A record if you have an IP address or a CNAME record pointing to maindomain.com.
If the url is generating itself incorrectly then that likely means it’s wrong in the Settings, though I’m confused how the site would even be working correctly if that were the case.