If you’re changing the directory structure of a website and you want to keep your pages indexed with Google and the other search engines, here’s an option for you, especially if you have a large number of pages to redirect.
Use the RedirectMatch command on Apache Servers.
In your .htaccess file, use the following code example:
RedirectMatch 301 /old-top-category/old-sub-category/.* http://www.your-domain.com/new-category.html
This will redirect all page or file calls from the previous directory to the new directory, on your same site. You could also use this to redirect to a different website.
