Changing your WordPress permalink format

If you have an established WordPress site, with many links indexed with Google, it is hurtful to your search results when you decide to change your posting format from something like this:
https://computerwhisperer.com/2018/06/18/sample-post/
to something like this:
https://computerwhisperer.com/sample-post/
People clicking your links will now see an error page, instead of your web posting.

Fortunately it is possible for your web server to redirect your old link format, to the newer one in your .htaccess file.

<IfModule mod_rewrite.c>
RewriteRule ^\d\d\d\d/\d\d/\d\d/(.*)$ https://computerwhisperer.com/$1 [L,R=301,NC]</IfModule>

The old link will still work, and Google will learn to index your pages with the new format.