Forum Moderators: phranque
My main (ignorant-of-Apache) question: can I redirect fifty pages from a subdirectory to a new single page, rather than have to put 50 entries into htaccess redirecting each page?
I know I can do:
RedirectMatch permanent ^/dir1/subd1/$ http://www.example.com/dirA/
RedirectMatch permanent ^/dir1/subd2/$ http://www.example.com/dirA/
RedirectMatch permanent ^/dir1/subd3/$ http://www.example.com/dirA/
...
RedirectMatch permanent ^/dir1/subd50/$ http://www.example.com/dirA/
But can I use just one link to get everything in /dir1/ to go to the index page of /dirA/?
Basically I want to delete fifty pages, but I don't want to:
1 have fifty htaccess entries
2 have fifty pages go 404 and because they will eventually go Supplemental, and Google will still count them and won't see them as "deleted"
At the same time, I will leave up a page linking to the old /subd1/ etc pages so Google crawls the links, sees the 301, and then decides my site is now 50 pages smaller.