You don’t need a plugin to achieve your goal. Use server redirect in the .htaccess
file because it will not load the processor to interpret the WordPress PHP code and will not consume time. The redirect will be completed before the WordPress runs.
RewriteRule ^[0-9]+/[0-9]+/(.*)\.html$ /$1 [R=301,L]
Where
[0-9]+/
is the numeric year and month(.*)
is the part we’ll use below (example-post
in your case)/$1
is the part we’ve got from the above
301 redirect is completely perfect for SEO.
Related Posts:
- What is the best permalink structure for SEO?
- How to remove dates from existing permalinks?
- Minimal custom permalink structure
- How do I turn off 301 redirecting posts (not canonical)?
- Pretty Permalinks
- Does a parent page’s post_title have to appear in a child page permalink?
- If I change permalink structures, can I use htaccess to permanantly redirect links?
- Force wordpress to display page with same url structure as categories
- Media Gallery Images – safe to change permalink?
- SEO: shortening permalinks to five words
- Redirecting “wrong” but working links to their canonical URL in order to prevent search engine penalties (e.g. /123/ at the end of URLs)
- What happens to the permalink that use %postname% if I change the post name
- Moving blog and maintaining current permalinks
- Is it possible to change the permalink structure without changing the old permalinks to posts and without 301 redirects?
- Permalink not changing according to post type
- 301 redirects after changing permalinks
- Is it possible to use % sign in post permalinks?
- Search and replace post URL’s on page output?
- Two urls for one website
- Pages included in another page and duplicate content issues for SEO
- Changing permalinks gives me 404 errors on nginx
- Does WordPress automatically do 301 redirect if I change permalink
- Filtering categories in the permalink structure
- Multiple post categories – single permalink
- ‘post_type_link’ filter not working
- Update URL Snippet to Canonical Permalink URL
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- Broken wordpress permalinks on pages only
- Permalink: postname EXCEPT for blog
- Change website URL without breaking links or images? WP 3.3
- How to identifty post from its URL in 404 page?
- Rewrite rule never matching
- Custom url for a single page
- Search result permalink
- Permalinks Structure and 404 Question
- Rewrite URL for results of a custom WP_Query
- Using ‘Primary Category’ in URL
- template_include not loading -instead goes to index.php
- WordPress installation in subfolder not working with nginx
- Clean install – Changing permalinks in twentyeleven give 404
- How to link to “most recent” document in the Media Library?
- Adding page links to content that automatically convert to pretty permalinks?
- Need Help Correct Regular Expression Redirect Code
- issue with setting up permalink programmatically
- changing permalink for custom template in posts of a certain category
- WordPress post-name permalink redirects to site.com
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- is there a way to add the post URL to the results of fselect facet in Facetwp plugin?
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- Woocommerce subcategory 404
- WordPress always returning 404 page for a specific url
- WordPress Automatic Update to 3.9.1 breaks Permalinks [closed]
- Static Text in Permalink
- Pre-populate Slug / Permalink with URL
- Allow Permalinks to Work with and without Hyphens
- Change Structure Permalink => Error 404? How to redirect
- Change Buddypress Admin Profile Page Permalink
- how do links move when I move my site?
- Permalink for specific page name
- Permalink for PDF of article
- Comment author url link is wrong? How to change from authors/ to author/
- Why can’t change the permalink of my page/post?
- Direct link to post when multiple categories are selected
- Make custom post available under main domain directly?
- Getting an ID from a URL, why can WP do this itself, but none of of the functions provided get it right?
- Ignore postname in permalink
- Big arabic permalinks not work
- Fix 404 error after changing permalink structure
- How can I set up a secondary permalink structure?
- External PHP file & Pretty Permalink
- Help me fix these crazy attachment page URLs (rewrite?)
- Unable to rename permalink
- WordPress permanent links not working (the weird way)
- How to enable %postname% permalinks on Mac?
- How do I rewrite attachment urls when permalink structure contains %category%?
- How do I structure my permalinks in WordPress?
- WordPress wildcard route to page
- WordPress Attachment Page URL Rewrite!
- Customize URL for specific tags archive
- Permalink prefix change
- why wordpress keeps redirecting to old page after deleting it?
- Parent/Child Relationships with Multisites?
- Rewrite posts url as they’re all children of a page
- Permalink problem ( Blog posts vs custom post types)
- I can get the permalink or the excerpt to work correctly, but not both
- Permalink Rewrite with Archive – Archive gets 404
- WP Admin Bar not showing with custom permalink structure for pages
- get_permalink wrongfully returns only year and month and not all the link
- Link to most recent child page
- Automatic -1 suffix being added to the permalinks of a page when the page does not exist
- WordPress permalink still not working (error or not understood?)
- Permalink for pages
- Pagination is not working, how to trace it properly?
- Problem when i configure permalink
- Getting the top level permalink using get_post_ancestors()
- wordpress home is gone
- how to create several url aliases for a page
- Post URL not working according to permalink setting
- Strip category base from URL?
- Does the error “A structure tag is required when using custom permalinks.” mean my permalinks haven’t saved?