I want to redirect a directory to another directory but I've hit a snag. I want to redirect
/new_directory_name so I put this in my .htaccess:
RedirectMatch 301 /directory_name/(.*) /new_directory_name/$1
Which worked fine BUT I also have another directory called:
And the redirect is redirecting links to files in that directory to
/new_directory_name/ and resulting in broken image links.
So I need a redirect that ONLY redirects
/directory_name/ and not any other directories that happen to have the same name (but are in a different location).