This should work:
RedirectMatch 301 ^/products/cool-tshirt$ http://yourdomain.com/tshirts$1
You can also see a bunch of other options and solutions here
Hope this helps.
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 do I skip wordpress’s 404 handling?
- Subpages return 404 server error
- WordPress subfolders htaccess bypassing the root htaccess RewriteRule
- How to Redirect Url to homepage?
- How to force a 404 on WordPress
- Redirect entire website to a single page
- How do I programmatically generate a 404?
- Redirecting WordPress /.htaccess / HSTS / SSL
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirecting old permalink to new one
- Redirect www to non-www htaccess
- Specific URL has 403 Forbidden status code
- htaccess redirect not working
- htaccess wildcard redirect misses some URLs
- 404 redirection and Google’s index [closed]
- Redirect to https not working with .htaccess [closed]
- WWW to non WWW redirect effects on load speed
- htaccess redirect dynamic posts
- WordPress site in subdirectory load site in main directory
- Redirect blogpage /blog/abcd/ to /blog/
- How to redirect from various ?page_id= to home page?
- Redirect home to another page with htaccess
- Redirect all pages except one to homepage via .htaccess
- 301 Redirect Loop
- Redirect 301 www.my-site.com/page/n to www.my-site.com/ [closed]
- Headless WordPress redirect front-page to login page [closed]
- htaccess redirects and WordPress
- 301 Redirect To Post ID
- Use virtual pages point to one specific page
- set up 301 redirect within wp-content/uploads/ directory of a WP site to a new image URL
- How to add new redirection on wordpress site
- How do I redirect all 404 error url to Subcategory url
- .htaccess rule to redirect old URLs to new structure [closed]
- htaccess redirect invoice.php to /client/invoice.php
- .htaccess Redirect
- How can I redirect a URL to an anchor link while maintaining the URL?
- How to remove duplicate and unnecessary part in a url using htaccess and regex?
- Redirect homepage with htaccess, except if I enter the link adding “/home”
- Redirect all requested url to new url
- Redirections and rewrites to subdomain
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- Can’t control WordPress Addresses from admin panel
- Unable to access folders in same level as wordpress installation
- How To Fix A Redirect Chain
- 301-redirect directives for blogger to wordpress migration
- reducing number of URL Redirects and increasing speed
- 301 Redirect all page and post urls from .html to /
- Redirect “http://old.net/category/postname” to “https://new.com/postname”?
- 301 Redirect Old URL to New WordPress Page
- How to use https on one page only?
- URL masking of subdomain to main domain using .htaccess
- How do I do a redirect to WordPress permalink with post id via htaccess?
- Prevent wordpress autoredirect
- WP page 404 error only on mobile
- 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?
- Redirect from ip to domain
- Permalinks do not include www subdomain
- How do I write a subdomain redirect?
- Redirect to parent page if child does not exist
- htaccess redirect from specific urls of my site to the homepage
- HTTPS to HTTP rewrite rules not working as expected
- How to redirect multiple subfolders back to root domain?
- htaccess 301 Redirect not working from aspx to new WP permalink
- Mass .htaccess URL Forwarding
- Redirection with a wildcard
- WordPress redirect to new domain name
- Redirect posts to new domain
- Open wordpress page in directory the way index.html would open
- How do I redirect the browser to 404 page, if no posts are found in home page
- How do i make WordPress return 404 instead of redirecting on misspelled page?
- How to redirect if 404 error in wordpress then redirect 404.php url
- 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
- How to make front page temporarily show content of internal page
- Redirect after login when WordPress in subdirectory
- Redirect after Permalink change – What regex do I use?
- Resolving the too many redirects on wordpress
- Redirect wordpress website URL into other link
- Redirect old .html URLs to a new installation in a subfolder
- Changing post per page causing 404 for pagination. Need a redirect htaccess rule
- WordPress 302 Redirect to Holding Page
- How to redirect all pages of a blog to a new blog
- Why my htacess rewrite return 404?
- Forcing header cache control in 404 pages
- redirect the root of a domain, while leaving the www version unredirected
- redirect to 404 page
- Redirect old homepage to the new one within the same site
- Redirect certain 404 pages to parent page