WP_HOME and WP_SITEURL
-
I have difficulties to understand the idea behind WP_HOME and WP_SITEURL. By reading the documentation I thought that I could have something like
define('WP_HOME', 'https://example.com'); define('WP_SITEURL', 'https://localhost');
where the public would read my blog via WP_HOME while the administration would be ‘non-public’, i.e. only accessable via ‘localhost’ in this case.
Now, this does not work:
get_bloginfo('url') => https://example.com get_bloginfo('stylesheet_url') => https://localhost/path/to/style.css
The URL returned for stylesheet_url is bit unexpected as I expected it to start with https://example.com.
So, what’s the point of having WP_HOME and WP_SITEURL?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WP_HOME and WP_SITEURL’ is closed to new replies.