htaccess redirect if url contains a specific word
snippet in htaccess

htaccess redirect if url contains a specific word

user3825

RewriteCond %{REQUEST_URI} ^/news/latestnews/(.*)$
RewriteRule ^news/latestnews/(.*)(201[0-9])(.*)$ /news/$2/$1$2$3 [R=301,L]