You can achieve this by adding the code to .htaccess file of your apache server.
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/([0-9]{4})/([0-9]{2})/([^/]+)\.html/feed/?$ [NC]
RewriteRule ^ /%1/%2/%3.html [R=301,L]
The given code will helps you in set up a redirect so that any request to a post URL with /feed
appended will be redirected to the original post URL
without the /feed
suffix.
Using this way, the incorrect URLs won’t result in 404 errors
.
Related Posts:
- What is the best practice to check for pretty permalinks?
- WordPress Permalinks %postname% for RSS2 Feed URL
- Why is my RSS feed not working?
- Edit permalink for old posts and not show on top of RSS feed
- I need to change the attribute of the isPermaLink guid in the WordPress RSS feed – from false to true
- WordPress 4.0 beta – how to change the link URL in RSS feeds
- RSS feed URL for post comment shows HTML source code of page
- Need help with add_rewrite_rule
- How to get pretty URLs with add_query_arg in permalinks
- How does wordpress keep track of post id when post id is not used in permalinks?
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Permalinks to Custom does not work (out of box)
- Why don’t WordPress post slugs allow accents?
- Multi-language permalink in qtranslate
- How to add query parameters to all internal links?
- How to make draft posts or posts in review accessible via full url / slug?
- Modify get_permalink with a specific filter
- Social Media Links on homepage – within posts/post loop
- How to set permalink to fetch all children custom posts with parent post in wordpress?
- How to change the link structure of the homepage?
- WordPress on VirtualBox – no pretty permalinks
- permalinks has -2 with post name structure. why?
- Child pages with same slug
- Remove words from permalink when saving post automatically?
- Permalink problem
- How to add category to the permalink and breadcrumb?
- Rewrite my default post URL
- Removing leading zeros from custom permalink structure
- Get permalink to page?
- Parent Category link to its sub categories on different page
- How to reset canonical URLs / fix redirect loop
- Permalinks: Page Not Found
- Trailing slash at the end of permalink loads faster / better SEO?
- WordPress blog posts permalinks giving 404 on nginx
- Permalinks by page/post name returning 404
- how to add rewrite rule to wordpress default post type
- Only default permalink is working mod_rewrite enabled
- Is a permastruct possible on pages?
- Custom WordPress user permalink
- Changing the post date without causing 404 error
- How to add a variable as a tag base?
- WPML – how to get the permalinks to display also the default language
- Why does the ‘Month and Name’ Permalink Format not Work on my new WordPress Site (running on IIS7)?
- How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
- Custom permalink structure for posts in specific category
- force permalink slug for page vs post_type slug parent
- WordPress url ingore permalinks setting [closed]
- Integrating wordpress into existing site and setting up htaccess?
- Rewrite URLs for LeadPages due to subdirectory installation
- After updage wordpress 4.4 to 4.5 nginx config works not properly
- How to generate a list of all urls
- Let me choose permalinks
- All URLs are having ‘/blog/’ appended to them.
- A link to a page including an anchor doesn’t go to that anchor – URL gets changed
- WordPress Permalink feature alternative
- Unique one time use URL
- the_permalink on the homepage vs posts for sharing links
- Test site pages go to main site
- when I create a page with a /blog permalink the css gets messed up
- Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)
- how to prefer static page if it exists over wordpress page
- Remove a link from a page ID used within an array [closed]
- Why will Pretty URLs not Work?
- Get Posts Based on Tag Matching Page Title
- Rewrite rule not passing variable
- Page content doesn’t display when published but does when previewed as draft?
- post preview/thumbnails not displaying correctly- linking to “home” instead of post?
- function to set permalink to /%postname%/ on theme activation
- Moving blog and maintaining current permalinks
- All pages load the home page if pretty permalinks are used
- where can i see wordpress automatic redirect History
- How can I access to the same post-type “page” from multiple different urls?
- How to separate an overgrown blog into sub-blogs – without breaking existing inbound links?
- Using a template file for a specific custom URL
- WordPress url customization
- Change permalink structure
- permalink not showing correctly using wp_insert_post and post_name
- 404 error on published page with specific permalink
- Problem with get_permalink, to get page content
- How to have permalink like domain.com/%category%/%postname%/
- Permalink Increments Not Updating/Removing
- Changing category base breaks permalinks
- My permalinks for all pages and posts now include old page titles as parents/categories
- WordPress Pagination Custom Rewrite Rule for Pages
- Is it possible to use % sign in post permalinks?
- All pages lead to home
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- Using a taxonomy value as part of a post URL
- How to update all permalinks in site
- How do you put your own rules into .htaccess?
- Change the author posts link using custom user metadata
- Custom url for portfolio post type and for posts [duplicate]
- Why do I have “category” in my permalinks?
- Getting the Posts’ permalinks from XLMRPC
- Post archive pages bringing me to a 404 page
- Permalinks migration issue
- Permalinks is not working in my wordpress setup
- Use .htaccess to redirect homepage to its permalink
- When accessing all pages except the homepage I get Nothing Found
- Adding tag slug to post permalink