Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SherylHohman/985852a8721915d9ed3edbcc1d7272dd to your computer and use it in GitHub Desktop.
Save SherylHohman/985852a8721915d9ed3edbcc1d7272dd to your computer and use it in GitHub Desktop.
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