Last active
October 5, 2021 00:42
-
-
Save NeuronQ/40990f72f51938e527906884f82a3e27 to your computer and use it in GitHub Desktop.
WP_HOME vs WP_SITEURL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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