Since category and page number is dynamic, you can use htaccess and use this sample rewrite rule below:
RewriteRule (.*?)/index.(.*?)\.html $1/page/$2/
You can test the regex here – https://htaccess.madewithlove.be/ and I can see that it is working as far as I have tested it.
PS: URL Redirections are cached aggresively, you need to clear you browser cache completely to make sure that you are testing it properly.
Hope this helps!
Related Posts:
- How to remove “YEAR/MONTH/” from uploads URL & redirect old URL to the new form?
- htaccess redirect – replace special character
- Regex with HttAccess
- Regex redirect rule for missing part of the path
- Redirect after Permalink change – What regex do I use?
- Regex for pdf’s – Old .asp Site folder structure to new WordPress Media Folder(s)
- Redirect entire website to a single page
- How do I programmatically generate a 404?
- User redirect to destination URL after login
- Stop WordPress from “guessing” redirects for nonexistent URLs
- How to create a php url redirection for nicer links
- Custom domain for sub-section of parent website
- WP redirects all pages from new domain to old domain
- wp_logout_url() redirects to confirmation page even with nonce?
- Redirecting old site links to new site
- Redirect after closing Theme Customizer when user does not have permission for theme page
- Creating intro page in wordpress
- Redirect to https not working with .htaccess [closed]
- How to redirect action=register link on the lostpassword page to a different link?
- You do not have sufficient permissions to access this page
- Perform a redirect after user action
- WordPress site in subdirectory load site in main directory
- How do I redirect users after submitting a replies for moderation on bbpress?
- Redirect blogpage /blog/abcd/ to /blog/
- template_redirect causing infinite loop when get_queried_object is called
- Does WP always makes 301 redirection?
- WordPress Redirecting HTTPS Requests to HTTP
- htaccess redirects and WordPress
- wp_redirect does not work
- Use virtual pages point to one specific page
- How to migrate production WordPress to Localhost
- Redirect first category archive page to normal page
- How to redirect a page into file?
- Check Page requested, and redirect
- WordPress on a local machine redirecting to xampp dashboard page [closed]
- Redirect all requested url to new url
- reducing number of URL Redirects and increasing speed
- This redirect loop is eating my lunch! [closed]
- What is this code in my theme’s footer.php causing chmod permission warnings? [closed]
- How to use https on one page only?
- Problem in disabling canonical 301 redirect
- Prevent users from going to wordpress profile after login
- Why does the $_GET parameter ?search forward the front-page to the archive/blog page
- Keep subcategory grandson in slug
- Force WordPress https redirect before www redirect based on site address url
- Prevent wordpress autoredirect
- My site is being redirected to itself
- Redirect Attachment Page to Attachment
- Permalinks do not include www subdomain
- Front page is being directed to an unknown site
- Redirect away from page if user is not admin
- Domain redirect to wp-admin/setup-config.php file
- Redirect loop with similar URLs
- Redirect regex misbehaving when placeholder empty
- 301 redirect via htaccess rules on the new site
- WordPress Domain redirects to different host
- Change the domain url?
- After retrive password, redirect to index page
- custom login form redirect problem
- WordPress redirect to new domain name
- Blog post is redirecting to home page
- Trying to re-direct users to specific page based on an ACF variable
- wp_redirect is only working in Chrome Network, page is not redirecting
- WordPress no permission redirection to a popup
- How to remove redirection
- Site using static homepage, redirects (301) and removes pluses from query string
- Unusual Apache2 Error Causing WordPress Redirect Error?
- Redirect error after updating WordPress to 5.4.2
- Determine user destination on wp-login.php
- 301 Redirect Loop www to non-www – Nginx + Apache2
- how to redirect 404 to attachment.php?
- 301 Redirect in WordPress not working in htaccess
- Disable WordPress URL auto Redirect
- Toggle Redirect Function On/Off With Checkbox
- My wordpress site has “https://” on it but when I go to Dashboard and click visit site, it removes the “https://”
- After disabling Multisite, homepage redirects to non-existing page
- redirect to https://my-site/wp-admin/ instead of https://my-site/wordpress/wp-admin/ after options updating
- Redirect after login when WordPress in subdirectory
- I get “too many redirects” problem when migrating localhost site
- Internal redirect from page to category
- All links redirecting to homepage
- How to redirect non-admin/editors from specific pages?
- How to make a redirect link in wordpress?
- wp_redirect leading to an infinite loop
- Configure WordPress to listen on a port other than 80
- Do I need to keep the original page when 301 redirecting to a new one?
- I’ve move my site but URL still goes to the old site
- Redirect attachment URL
- Redirect based on $_GET parameters
- Conditional redirection with logout
- Logging back into WordPress after logging out and having issues with ‘loggedout=true’ in redirect URL
- redirect users to the login page
- WordPress subfolders htaccess bypassing the root htaccess RewriteRule
- Rewrite Rule working different than expected
- WordPress Redirecting Form Action to Home Page
- How to redirect users without permission to view content to a custom page?
- redirect the root of a domain, while leaving the www version unredirected
- How to Create Custom Route to a page in WordPress
- How to create a redirect to another domain like safe redirect manager from php
- Post Migration Site Migration Redirects All Known Solutions Attempted