Home » WordPress Tutorials » Administration » How to Remove Dates from WordPress URLs

How to Remove Dates from WordPress URLs

If you have dates in your WordPress post URLs and want to remove them, but don’t know how, this is the right article for you.

Being a very versatile content management system (CMS), WordPress allows you to personalize your website in numerous ways.

One such way is to change the structure of permalinks of your blog posts and remove the dates in URLs in a few quick steps.

 

How to Remove Dates from WordPress URLs

Before we see how this is done, however, it is first important to consider a few things.

If you are still learning how to make a WordPress website and you haven’t published any posts, then you shouldn’t worry about changing the URL structure and removing dates. Simply proceed with the next steps.

However, if you already have published posts, changing their structure can make visitors stumble on a 404 Error Message. This happens in cases in which site visitors use the old URL to open posts that are already bound to a new URL. For example, they have saved the old URL or clicked on an old URL from another website.

This is why you should know how to fix Error 404.

Also, you should set up redirects that lead visitors to the new URL once they click on the old one. You will read how to do so further in this article.

Furthermore, it is important to make a backup of your website. This is will help you retain all your website information safely and revert back to it in case of issues.

 

Remove Dates from WordPress URLs

First, log in to your WordPress dashboard and head to Settings->Permalinks:

 

This will open the options page for your WordPress permalinks. Since you have dates in the URLs, you have used either Day and name structure, or the Month and Name. To change that, you should select a structure that doesn’t contain dates. The last two from the list are suitable, as they don’t contain dates and are informative enough:

WordPress Permalinks settings

 

  • Post name: this is a great option, as it would display the post name in your post URLs, right after the domain of your website – for example, https://www.examplewebsite.com/blog-post-name/.
  • Custom structure: personalize the structure with suggested tags. For example, add a category before the post name: https://www.examplewebsite.com/category-name/blog-post-name/. This gives more information to search engines and site visitors and is widely used by bloggers.

Once you selected a new structure, save the settings by clicking the blue Save Changes button in the lower left corner of this page. This will apply and save all the changes:

WordPress Save Permalink Settings

 

Now you’ve managed to remove the date from your blog post URLs.

However, there are a few more tweaks you should do, so to retain your SEO score and traffic.

 

Set Up Redirects

Redirects are a widely used technique in WordPress, as they reduce the negative effects of the 404 Error Message. When you use redirects, your visitors will open the right page even when they follow the wrong URL.

The concept is simple – although you change your URLs, old versions can still exist on your and other websites. If visitors click on these old links, they won’t open a relevant page, but rather will stumble upon the annoying 404 Page Not Found message.

However, when you use redirects,  and users click on an old version of an URL, the redirect technique will automatically follow the new link, instead of the old one, and WordPress will open a fully functional webpage with the relevant content.

Redirects are very important to retain your visitors’ satisfaction, site traffic, and SEO score,  when changing details in URLs, such as removing the date.

Because of how important redirection is, you should set it up immediately after you removed the dates from your post URLs.

To do so, follow the next steps:

First, install a WordPress plugin for redirecting. For this demonstration, we will be using a simple one called Redirection:

WordPress Redirection Plugin

 

Then, follow the plugin’s setup process:

WordPress Redirect Plugin Setup

 

Once the process is finished, you can access the redirection options:

WordPress Redirect Plugin Settings

 

To add redirects,  place the old link (the one that contains a date) in the Source URL field, then add the new address (the URL without dates) in the Target URL field, then click on Add Redirect.

Follow this process for each URL in your blog section.

Now you have managed to add redirects and retain your traffic and SEO rankings.

 

Conclusion

Removing the date from URLs is a great way to make a blog piece relevant for a longer time. This is very useful if you want to focus on evergreen content on your WordPress blog.

Now you know how to do so and make your blog posts more useful for your visitors, and also retain SEO score and traffic, as you will avoid dealing with 404 Error messages.

Related:

 

Was this article useful?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Newest Articles:

How to Add a Site Logo Block in WordPress with Gutenberg

Adding a site logo in WordPress with Gutenberg is straightforward and requires only a few mouse clicks and just several minutes of your time. In the following paragraphs, you will read how to add a site logo to your WordPress website via the Gutenberg editor step by...

How to Add Images to WordPress with Gutenberg

Adding images with Gutenberg is quite simple. The block editor is very user-friendly and allows you to add images in several ways. In the following paragraphs, you will read about 4 methods you can instantly use to upload the media files you want.   How to Add...

How to Disable Gutenberg in WordPress

If Gutenberg is not suitable for your needs and wish to switch back to the Classic Editor, continue reading, as in this article we will show you 3 simple methods of how to disable the block editor. In the following sections, you will read how to disable Gutenberg by:...

5 Best Gutenberg Plugins for WordPress

One of the fastest and most convenient ways of enhancing the functionalities of Gutenberg is by using various WordPress plugins. Although Gutenberg is very versatile and feature-rich by itself, the open-source nature of WordPress has inspired developers all around the...

How to Add a Contact Form with WordPress Gutenberg Editor

If you are using Gutenberg to craft your WordPress website, then you should know that the process is very easy, especially by using the block editor. In the following paragraphs, you will read how to add one to your pages.   How to Add a Contact Form with...

Ready to Create Your Website?