Introduction
The domain can have subpages, which can be created from the web hosted service (i.e. Notion, Webflow, etc.). Those subpages would be part of the subdomain, thus accessible through the path variable (in a format of www.harmony.one/{path}
).
Often times, the subpages are very long and complex, making it inefficient. Also, it may be the case, where a desired page is not located under the subdomain.
Through S3 buckets, vanity URLs can be create. Vanity URLs are more concise and descriptive, making it easier for users to remember, type, and share.
Set Up Format
The following setup can be used to create vanity URLs:
- Domain: www.{subdomain}.{domain} (i.e.
www.harmony.one
) - S3 Bucket: {subdomain}.{domain} (i.e.
harmony.one
, which would have a bucket path ofs3://harmony.one
)
For an example, the following URL is a subpage of www.h.country : https://www.h.country/page-2023-q2-tgi-ml-talk-ai-crypto-7ef8b03c54844a5e97194c36cfac6009
There are two ways to go to this website:
- Through the provided link above. However, this is not efficient as the path may be too long to memorize or share. Thus, the second solution of:
- h.country/ai ”ai” is a resource inside “h.country” S3 bucket which is an empty file with simply a redirect to the link above