How to remove date from a WordPress post or page URL?
When publishing a post, the
post usually has a date with the URL. Having a date can cause problems for the
CEO. Many people want URLs without their post date, only post titles. Is it
possible to remove post date from post URL? The answer is not possible if
someone uses Blogger, but it is possible if someone uses WordPress. It is much
easier to remove a date from a WordPress post.
Today's article is how to
remove date from WordPress post.
· · First go to the WordPress dashboard.
· Clicking on Settings, then click
on Permalink.
· Now select the post name.
· Save.
The date has been removed from your post URL.
Now there will be a problem.
If your website is new, then you don't have to do anything else. But if your
website is old, then the URLs of your old posts are in the search engines. If
someone clicks, on the URL of that old post, the page will show page not found error. What is the
solution now?
The solution is to redirect the old post link.
· Download and activate the
Redirection plugin.
· Set up the Redirection plugin.
· When the setup is completed,
click on the redirect option.
· Here you can see Source URL and
Target URL.
· Click on the URL option on the
right and select Regex.
· If you are using a day and name
URL such as example.com/2020/10/19/sample-post
·
In this case type in the source URL
= /(\d*)/(\d*)/(\d*)/([A-Za-z0-9-*]) And the target URL = $4
· If you are using Month and name URL such as
example.com/2020/10/sample-post/
·
In this case type in
the source URL = /(\d*)/(\d*)/([A-Za-z0-9-*]) and the target URL = $3
· Click the Add Redirect button.
·
If you still have any questions you can write in the
comment box below.
Have fun
No comments:
Post a Comment