---
title: "Comment by Wei Lun on \"Hashnode Page Rules - Say goodbye to long and boring URLs 👋\" | Hashnode"
description: "What is the difference between 301 and 302 redirection type"
url: "https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080"
---

[Discussion](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad)

Comment [Hashnode Page Rules - Say goodbye to long and boring URLs 👋](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad)

[Wei Lun](https://hashnode.com/@weilun)

[Jul 7, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080)

What is the difference between 301 and 302 redirection type

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Jul 7, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080#reply-60e5a7db4aacd63048247152)

[Yong Wei Lun](https://hashnode.com/@weilun) "A 301 redirect means that the page has permanently moved to a new location. A 302 redirect means that the move is only temporary."

[Source](https://www.hochmanconsultants.com/301-vs-302-redirect/#:~:text=A%20301%20redirect%20means%20that,found%20at%20the%20new%20location.)

[Wei Lun](https://hashnode.com/@weilun)

[Jul 8, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080#reply-60e657b2c32fbd1b73720573)

[Catalin Pit](https://hashnode.com/@Catalinpit) I know the definition, in the case of redirection mention in the post, should we use 301 or 302?

[Kamil Gierach-Pacanek](https://hashnode.com/@Asentinn)

[Jul 8, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080#reply-60e70df34e18000309d80e79)

[Yong Wei Lun](https://hashnode.com/@weilun) 302 tells search engine not to index it, 301 otherwise. So, basically if you won't be changing your page - like here [Catalin Pit](https://hashnode.com/@Catalinpit) YT channel - you would use 301.

I'm using 302 redirections to always link to the latest post ([blog.cyberethical.me/latest](https://blog.cyberethical.me/latest))

[Wei Lun](https://hashnode.com/@weilun)

[Jul 12, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080#reply-60ebed1ec551f16b0f851384)

[Kamil Gierach-Pacanek](https://hashnode.com/@Asentinn) I see thanks. How to you make the `latest` link? Mind to share?

[Kamil Gierach-Pacanek](https://hashnode.com/@Asentinn)

[Jul 12, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080#reply-60ebee25c551f16b0f8513aa)

[Yong Wei Lun](https://hashnode.com/@weilun) Sure:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1626074657901/OKicZifOR.png)

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.

[Wei Lun](https://hashnode.com/@weilun)

[Jul 12, 2021](https://hashnode.com/posts/hashnode-page-rules-say-goodbye-to-long-and-boring-urls/60e5904de9aeb8301a6a95ad/comment/60e5a4854aacd63048247080#reply-60ec4b50573c235ee639c6e5)

[Kamil Gierach-Pacanek](https://hashnode.com/@Asentinn) Oh i thought can be update automatically
