Using mod_alias:
RedirectMatch 301 ^/news/(.+?)(-[0-9]+)?$ /blog/$1
or using mod_rewrite:
RewriteEngine On
RewriteRule ^news/(.+?)(-[0-9]+)?$ /blog/$1 [L,R=301]
More Related Contents:
- .htaccess redirect without changing address bar
- 301 redirect .htaccess
- 301 redirect from URL with query string to new domain with different query string
- How can I use .htaccess rewrite to redirect root URL to subdirectory?
- .htaccess redirect www to non-www with SSL/HTTPS
- ReWrite rule to add .html extension
- Force HTTPS for specific URL
- Rewrite URL after redirecting 404 error htaccess
- How to do htaccess redirect based on cookie value
- Add Trailing Slash .htaccess
- Need to redirect all traffic to https
- Redirect .php URLs to URLs without extension [duplicate]
- .htaccess to redirect images
- Best Practice: 301 Redirect HTTP to HTTPS (Standard Domain)
- .htaccess redirect – automatically add www. if no subdomain exists
- .htaccess URL redirect
- .htaccess redirect
- Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess
- .htaccess redirect to all IP’s but mine
- Password protect a specific URL
- How to write htaccess rewrite rule for seo friendly url
- What exactly does the Multiviews options in .htaccess?
- Remove ‘index.php’ from URL with .htaccess
- Change WordPress Admin URL
- .htaccess 301 redirect of single page
- htaccess redirect all pages to single page
- 301 Redirect to replace all spaces to hyphens
- redirect all .html extensions to .php
- Reference capture groups of multiple RewriteCond in RewriteRule
- htaccess RewriteRule page with query string