Skip to content

Instantly share code, notes, and snippets.

@wpperform
Last active August 29, 2015 14:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wpperform/df5fd4a99faaa862277c to your computer and use it in GitHub Desktop.
URL Examples
# 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