Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Remove the Date from WordPress URLs

Do you want to remove the date from your WordPress URLs?

WordPress comes with an SEO friendly URL structure. This includes several link formats including one that adds dates to your WordPress post URLs.

In this article, we will show you how to easily remove the date from your WordPress URLs.

Removing date from your WordPress URLs

Why Dates Appear in WordPress URLs?

By default, WordPress uses a non human-readable link structure for post and page URLs which looks like this:

It uses post ID in the URL which does not look very good or meaningful.

However, WordPress also allows you to easily change this to more meaningful and SEO friendly URLs. It gives you a bunch of options to choose from under Settings » Permalinks page.

Permalinks page

Choosing the ‘Month and name’ or ‘Day and name’ options will add the date parameters to your WordPress URLs. They will then look like this:

Day and name:
Month and name:

These URLs are better than the default ugly URLs. They are still SEO friendly as well. However, they are unnecessarily lengthy and the dates make your articles look old.

That’s why a lot of users want to switch to just ‘Post name’ URL structure which will remove the date and just use the post slug keyword in the URL.


It is shorter, meaningful, SEO friendly, and doesn’t look dated as time passes.

Things You Should Consider before Removing Date from WordPress URLs

If you are starting a new WordPress blog and haven’t launched it yet, then it is safe to remove the date from WordPress URLs.

However, if your website has been around for some time, then you will need to keep the following things in mind.

Changing the URL structure may result in 404 errors for your users and search engines. This means you may see warnings and errors in your Google Search Console reports.

Your search engine rankings may also get affected as the link backs to your old articles will now lead to 404 errors.

Both of these issues can be fixed by setting up redirects, and we will show you how to do that later in this article.

Changing the URL structure will also reset your social share counts. Unfortunately, most social share count services do not track the redirected URLs and will reset share count for them.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Removing Date from WordPress URLs

First, you need to create a complete WordPress backup of your website. This will allow you to restore your website to an earlier stage in case things don’t work out as you expected.

After that, you need to visit the Settings » Permalinks page and choose ‘Name’ as your permalink option.

Change permalinks

Don’t forget to click on the ‘Save Changes’ button to store your changes.

WordPress will now remove the date from your WordPress URLs and start using the name-based URL structure.

Setting up Redirects to Preserve SEO Rankings

Now that you have removed the date from your WordPress URLs. You need to set up proper redirects.

Redirects will send users to the updated URLs without showing a 404 error. This will also help search engines understand that the old URLs are now moved to these new URLs.

First, you need to install and activate the Redirection plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Tools » Redirection page and click on the ‘Start setup’ button.

Start redirection setup

The plugin will then show you a couple of options. It can automatically detect and alert you if a posts URL is changed and keep a log of redirects. You can also leave both these options unchecked and simply click on the ‘Continue setup’ button.

Continue setup

The plugin will then run some tests and if everything looks good then you can click on the Finish setup button. After that, it will store plugin settings into the WordPress database.

Once finished, you will see the plugin’s settings page. From here, you need to click on the ‘Add New’ button at the top or scroll down to the ‘Add new redirection’ section.

Add new redirect field

You will see a form with Source and Target fields. ‘Source’ is the field where you’ll describe your old URL structure and ‘Target’ is the location of the new URL.

If you were using the ‘Day and name’ URLs, then you will enter the following values in the source and target fields:

Source: /(\d*)/(\d*)/(\d*)/([A-Za-z0-9-*])
Target: /$4
Redirect rules for day and name URLs

If you were using ‘Month and name’ URLs, then you’ll enter the following values:

Source: /(\d*)/(\d*)/([A-Za-z0-9-*])
Target: /$3

Month name redirects

Don’t forget to select Regex and click on the ‘Add Redirect’ button to save your changes.

The plugin will now redirect users to your new name-based URLs.

We hope this article helped you learn how to easily remove the date from WordPress URLs. You may also want to see our guide on the most common WordPress errors and how to fix them as well as our collection of the best WordPress SEO plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

16 CommentsLeave a Reply

    • You can do that if you would like, you would want to ensure all of your redirects work as the most important thing when updating your URLs.


  1. After setting the redirects will my site still be seen by search engines?

    Is there a possibility that it will later affect rankings?

    • Your site would still be seen by search engines and your rankings should not be affected by the permalink change if you’ve set up redirects.


  2. Hello
    Thank you so much
    I have a question
    how to add .html to this code /(\d*)/(\d*)/([A-Za-z0-9-*]) ?
    i want to remove month and name and .html
    Thank you

  3. Very helpful! I assumed I was stuck after writing a couple of dozen posts with dates in the URL but this worked and was incredibly easy! Thanks a lot :)

  4. I am using the post name permalink structure since beginning. I do change the permalink structure whenever I work on new WordPress installation to the postname type so that from the beginning itself the site becomes SEO friendly and links human readable.

Leave a Reply to Diego Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.