desirae.js/GLOSSARY.md

45 lines
1.2 KiB
Markdown
Raw Normal View History

2020-11-09 03:01:26 +00:00
# Glossary
2015-01-24 00:40:57 +00:00
2020-11-09 03:01:26 +00:00
## Canonical URL
2015-01-24 00:40:57 +00:00
2020-11-09 03:01:26 +00:00
base_url + base_path + permalink
2015-01-24 00:40:57 +00:00
2020-11-09 03:01:26 +00:00
## Base URL
base_url is the point of ownership
2015-01-24 00:40:57 +00:00
In most cases that would be https://johndoe.com
In some cases that might be https://school.edu/~/johndoe
It does NOT include a trailing /
2020-11-09 03:01:26 +00:00
## Base Path
2015-01-24 00:40:57 +00:00
2020-11-09 03:01:26 +00:00
base_path is the blog directory
2015-01-24 00:40:57 +00:00
In most cases that would be / or /blog/
It DOES include BOTH a LEADING and TRAILING slash.
2020-11-09 03:01:26 +00:00
In the case of https://school.edu/~/johndoe/weblog, the base_path would be /weblog/.
2015-01-24 00:40:57 +00:00
2020-11-09 03:01:26 +00:00
## Permalink
2015-01-24 00:40:57 +00:00
The permalink is the permanent part of the URL, after the path to the blog.
For example:
2020-11-09 03:01:26 +00:00
- http://blog.johndoe.com/articles/first-post.html the permalink is articles/first-post.html
- http://johndoe.com/blog/articles/first-post.html the permalink is still articles/first-post.html
- http://school.edu/~/johndoe/blog/articles/first-post.html the permalink is yet still articles/first-post.html
2015-01-24 00:40:57 +00:00
The permalink is ALWAYS RELATIVE (no leading slash)
It is designed so that if you ever move your blog from one domain, point of ownership, or path to a new one,
a very simple one-line redirect can be made to your webserver and all of the posts will end up in the right place
once again.
2020-11-09 03:01:26 +00:00
base_url the
permalink refers to