How to redirect permalink from ‘Day and name’ to ‘Post name’

Spread the love

If you are using the “Day and name” permalink structure in your WordPress blog and want to change it to Post name structure. You can just change this in the Setting > Permalinks option. However, you must redirect permalink from ‘Day and name’ to ‘Post name’. For this, you have to add RedirectMatch in the .httaccess file. For this just add this line in .httaccess file.
RedirectMatch permanent ^/dddd/d+/d+/(.*) /$1

You might also like