Hashnode Page Rules - Say goodbye to long and boring URLs π
Create custom URLs with the Hashnode custom page rules

Search for a command to run...
Create custom URLs with the Hashnode custom page rules

Yong Wei Lun "A 301 redirect means that the page has permanently moved to a new location. A 302 redirect means that the move is only temporary."
Catalin Pit I know the definition, in the case of redirection mention in the post, should we use 301 or 302?
Yong Wei Lun 302 tells search engine not to index it, 301 otherwise. So, basically if you won't be changing your page - like here Catalin Pit YT channel - you would use 301.
I'm using 302 redirections to always link to the latest post (https://blog.cyberethical.me/latest)
Yong Wei Lun Sure:

As you can see, I've entered the latest 302 redirection to the newest article. I have to update it manually - but this is the only place I'm changing it. I have the latest link on my Instagram and other social media.
A series about Hashnode's new features releases and updates. We ship things faster and listen to the dev community at Hashnode. Request a new feature [here](https://hashnode.com/feature-requests).
Improve the quality of your articles with peer feedback
The Breaking Apps Hackathon ran for four weeks, sponsored by Bug0. The brief was simple: write Passmark tests for any web app, then publish a Hashnode article about what you found. The entries made th

The Speed Paradox in 2025 Developers are moving faster than ever these days. With tools like Copilot, Cursor, and AI agents, they're shipping production-ready features in just hours - development velocity has reached new heights. But QA? It's still s...

Hey Hashnoders π₯ Thank you to everyone who participated in the ModusHack! We were thrilled to see the innovative use of AI in building intelligent apps with Modus, AI models, and Hypermode. Every sub

We have recently launched Docs by Hashnode - the content engine for your API documentation and product guides. We've heard your pain points: Slow builds Complex setups Rigid systems Poor developer experiences And we're tackling them head-on. Yo...

Last week we launched Docs by Hashnode to the public, along with a revamp of the Hashnode homepage. https://x.com/hashnode/status/1836662090905309623 We have received great support from our community and a lot of feedback. Over the last week, we sp...
![[Changelog]: New additions to Docs by Hashnode, new design components and bug fixes.](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1728048920904%2F8f588270-5d7f-4082-b431-35cab56747ed.png&w=3840&q=75)
Town Hall - The official Hashnode blog
209 posts
Welcome to the official Hashnode blog. Find our product updates, announcements, interviews, and more here. Get started with Hashnode now.
Sometimes, links can become long and cumbersome. They look ugly, untrustworthy and spammy, which makes them difficult to share online.
However, Hashnode comes to the rescue. Hashnode has a feature, called custom page rules, that allows you to create a custom URL that redirects to another URL.
Thus, you can use your domain to create nice-looking, shorter URLs.
With the Hashnode custom page rules, you can create shorter URLs using your domain. Thus, instead of having one long URL, you can create a shorter URL with the following structure - your_domain.com/yourPath.
Let's take as an example this YouTube link - https://www.youtube.com/channel/UCl1IRCSmm74qhcFNPTHcbMg, which represents my YouTube channel. I wanted to create something shorter and easier to remember.
As a result, I used the custom page rules to shorten the URL. Now, the URL to my YouTube channel is https://catalins.tech/youtube. Besides shortening the URL, it also makes it more intuitive.
Don't you agree that the URL looks better?
When you create a redirect URL, you only need to provide the path. Hashnode automatically appends the path you provide to your domain (as long as it's not taken already).
For instance, if your domain is blogger.com, and you want to add the path /youtube, you only need to specify the path, and Hashnode appends it automatically to the domain.
After that, you need to select the redirect type you want. For example, you can choose a 301 or a 302 redirect type.
Lastly, you need to add the destination URL, which is the URL where your custom page rule will redirect people. After pressing the "Add rule" button, blogger.com/youtube will redirect to your YouTube channel.
Figure 1 below illustrates the process of creating a custom page rule. Thus, you can create your customized URLs within minutes.

Figure 1
For more information about the custom page rules, I recommend checking the Hashnode documentation.
And that's how you set custom page rules! Did you know about them, or did you use them?
This feature is handy, and it allows you to create links that are: