Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP_HOME vs WP_SITEURL
WP_HOME - where home is
homeurl
home_url()
Site Address (URL)
http://example.com
WP_SITEURL - where wordpress is (when having wp in a subdirectory home without the subdir path, like at https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
siteurl
site_url()
WordPress Address (URL)
http://example.com/wordpress
sources:
https://codex.wordpress.org/Editing_wp-config.php#WP_SITEURL
https://wordpress.stackexchange.com/questions/20294/whats-the-difference-between-home-url-and-site-url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.