After a lot searching, I have gotten the solution of this problem from the web.
A similar problem is discussed on this URL. And solution is given on 7th page of this URL.
Related Posts:
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- How do I skip wordpress’s 404 handling?
- Why specific file directory fails to redirect but its parent folder succeeds?
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Deny access to a path (give 403 or 404 response)
- Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance
- How can I redirect users on the new 404 page without plugin?
- How to redirect an old page url to the homepage
- How to redirect non existent pages/posts in wordpress using htaccess
- How do I skip wordpress’s 404 handling?
- Subpages return 404 server error
- How to Redirect Url to homepage?
- Redirect Restricted Page to 404
- How to prevent automatic redirection of 404 errors and “incorrect” URLs?
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- Redirect entire website to a single page
- How do I programmatically generate a 404?
- 301 redirect not working through .htaccess
- Site redirects to wrong url when saving settings
- Index in root, wordpress in subdirectory
- 302 redirect instead of 301 after switch to HTTPS
- Redirect to https not working with .htaccess [closed]
- htaccess redirect – directory and subpages to a single page
- htaccess redirect dynamic posts
- RedirectMatch and Redirect interfering with each other
- Menu links only using http after enabling https, unable to redirect http links
- WordPress site in subdirectory load site in main directory
- https multiple redirects
- How to create a 301 redirect that doesn’t apply to subsites
- Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?
- some url does not redirect from http to https
- Why can’t I access files / directories outside of wordpress
- Redirect blogpage /blog/abcd/ to /blog/
- https redirect (with .htaccess) redirect loop
- Redirect all pages except one to homepage via .htaccess
- Redirect a page id url but not the page slug
- htaccess redirects and WordPress
- forward domain name to particular page?
- htaccess rules not applied?
- Use virtual pages point to one specific page
- htaccess redirect – replace special character
- Load time cost of using a redirect plugin v direct .htaccess entry
- How do I redirect all 404 error url to Subcategory url
- htaccess 301 Redirect not working for WordPress site
- How to set 301 redirection after moving WordPress blog?
- WordPress Auto-Redirecting on 404
- Redirecting amp url to non amp url
- Redirect all requested url to new url
- 301 redirection editing .htaccess doesn’t work
- Redirect custom post type from one domain to another domain
- Can’t control WordPress Addresses from admin panel
- Redirect htaccess does not work correctly with my new wordpress site
- 301-redirect directives for blogger to wordpress migration
- reducing number of URL Redirects and increasing speed
- How to use https on one page only?
- .htaccess 301 redirect conflict with plugin “WordPress Https”
- How do I put up a splash page and have all WordPress links redirect to this page?
- Redirect – remove custom query string
- Redirect specific URL before other redirects take place in .htaccess?
- Prevent wordpress autoredirect
- Stop forcing certain paths to end with a forward slash
- How to redirect only 404 pages with htaccess in WordPress
- How to redirect the frontend of a WordPress site (only)?
- Force 404 redirect to home?
- Permalinks do not include www subdomain
- I want to resolve Redirect Chain [closed]
- How to fix URL with pageid example /?p= too many redirection error
- 301 redirect any RSS feed on level up url
- Dynamic 404 page content while still keeping 404 status code?
- Redirect to home if page doesn’t exists [duplicate]
- redirecting an entire WP site from one top level domain to another
- Redirect to parent page if child does not exist
- 404 redirect based on url
- Redirection with a wildcard
- Date based redirects of posts that no longer exist
- WordPress redirect to new domain name
- 301 all old pages to new location
- Open wordpress page in directory the way index.html would open
- Use a 301 to Redirect any 404 from at the blog post level to the blog archive
- Understanding Redirects
- multisite 404 subfolder same name slug as site
- how to redirect 404 to attachment.php?
- Using cache brokes redirecting
- 301 Redirect in WordPress not working in htaccess
- Page editing in backend redirecting to 404 page not found with url /post.php
- Redirect after login when WordPress in subdirectory
- Redirect after Permalink change – What regex do I use?
- Allow GET request on certain page
- .htaccess redirect for old subfolder installation to new subfolder installation and https
- Pagination redirect set in .htaccess file is not working
- Redirecting a POST to a php script
- htaccess and redirect to new url using regex
- How to redirect correctly a root domain to a subdomain in a subfolder?
- htaccess redirect for all categories converted to tags now showing 404
- Need rewrite for URL with specific string
- How to redirect all pages of a blog to a new blog
- How does the flow of htaccess files in sub-directories work
- Stopping media file redirects
- Forcing header cache control in 404 pages
- Post pages are redirecting to the 404 page in wordpress