What Is Difference Between Home URL and Site URL in WordPress?

When you create a WordPress site, you give the site a public home URL, which is the address that appears in a web browser’s address bar. You can also give your site a custom domain name, and WordPress will create a custom home URL for you that includes that domain name.

When you want to share your WordPress site with others, you can give them a link to your public home URL. But you can also give them a link to your site’s custom home URL, which is the URL that WordPress creates for you.

Here’s why you might want to give your site a custom home URL:

If your site is hosted on a different server than your blog, you can have WordPress create a custom home URL for you that includes the blog’s domain name. This makes it easy for people to find your blog from any web browser.

If you have more than one WordPress site on the same server, you can give each site a different custom home URL. This makes it easy for people to find the site that they’re looking for.

If you’re sharing your WordPress site with people who don’t have access to your blog, you can give them a link to your site’s custom home URL. This makes it easy for them to explore the site without having to register for an account or log in to your blog.

WordPress gives you a few options for creating custom home URLs. You can use the wp_site_url() function to create a custom home URL, or you can use the WordPress URL shortener plugin to create a custom home URL that includes the shortcode %site_name%.