The Custom Page Rules feature on Hashnode enables you to create customized URLs linked to your blog’s domain. For example, you can create a custom URL like this your blog’s domain/youtube
for your YouTube channel.
Why is this feature helpful?
There are a ton of networking and social platforms in the world. Most of the time, it's hard for our mutuals to find us on those platforms because they can’t remember our username.
If you link up your active networking or social platforms to your Hashnode blog’s domain, it will be easier for people to find you on those platforms.
For instance, if your mutual is trying to remember the name of your YouTube channel, they can quickly go to your blog’s domain/youtube
instead of thinking for minutes or googling.
In addition to that, you can also add these customized URLs to your blog's navigation bar to create more awareness about your YouTube channel.
How to use the custom page rules feature
-
From the "create page redirects" tab, add a name for the customized URL you want to create.
-
307 HTTP redirect (Temporary Redirect): This indicates a temporary move, preserving the original request method. It is the ideal choice in many scenarios, which we’ll discuss later.
-
308 HTTP redirect (Permanent Redirect): Specifically preserves the original request method.
-
-
Add a destination URL.
-
Select your preferred redirect type - a 301 redirect means that the page has permanently moved to a new location, while a 302 redirect means that the move is only temporary.
Once the rule is added, your domain with the source path specified, e.g. https://blog.favouritejome.dev/youtube will be redirected to my YouTube channel.