What’s the actual difference between wp_siteurl and wp_home?
There’s a related post which doesn’t quite answer the question:
What’s the actual difference between wp_siteurl and wp_home?
There’s a related post which doesn’t quite answer the question:
You must be logged in to post a comment.
WP_SITEURL
is a base url for resources: images, stylesheets, etc.WP_HOME
is where WP thinks site root url is (a base URL for links)Example:
I had to integrate WP blog into my rails site, so i configured nginx to route all requests to
/blog
to WordPress, while all other requests went to my rails app. So I setWP_HOME
tomydomain.com
for WP links to work correctly, but I had to setWP_SITEURL
tomydomain.com/blog
for WP static assets to be found inside WP directory.Lets consider your awesome website’s domain name is –
Now one fine day you want to start a blog at this location –
Now, answering your question –
For further info – see this WordPress article.