URL Examples
This file contains 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
# absolute URL loads using insecure HTTP protocol | |
http://wpperform.com/ | |
# absolute URL loads using secure HTTPS | |
https://wpperform.com/ | |
# protocol relative or protocol agnostic URL's | |
//wpperform.com/ | |
//wpperform.com/relative-urls/ | |
//www.mysite.com/ | |
# root relative URL's | |
/relative-urls/ | |
/images/test.jpg | |
# document relative URL's | |
# when used in a stylesheet located in wp-content/themes/mytheme, | |
# these document relative URL's will load the resource at | |
# wp-content/themes/mytheme/images/logo.png | |
../images/logo.png | |
images/logo.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment