Please can someone tell me why this isn't working?
I am trying to redirect all files within the directory "Kent". In this example the page to be redirected is "ramsgate" and change the folder structure.
RedirectMatch 301 /electrical-contractors/kent/(.*).php /electrical-contractors-$1/
Have this rule inside
RewriteEngine On RewriteRule ^(.+)\.php$ /electrical-contractors-$1/ [L,NC,R=301]