Welcome to WebmasterWorld Guest from 188.8.131.52
and I need to 301 redirect the pages to just this category:
The twist is that there will be no need for the index2, index3, index4, and index5 pages within the new /product/ category. What should be done with these 4 pages? 301 redirecting these pages would lead to nothing.
Thanks for any help that you can provide.
redirectmatch ^/product/subDirectory/ [mysite.com...]
Would this be correct? Does this produce a 301 redirect message for the search engines? In addition, is the " ^ " character needed before /product/subDirectory? Thanks again for your assistance.
From what I read, it seems as if the " ^ " would not be needed in the above example. In doing some more research, would the following example work as well:
redirect 301 /product/subDirectory/ [mysite.com...]
The way I read this is that all pages in the subDirectory folder would get rerouted to the /product/index.html page. Would something like this raise a duplicate content flag though?
Do yourself a favor and use the start anchor... :)
RedirectMatch 301 ^/product/subDirectory/ http://www.mysite.com/product/index.html
> Would something like this raise a duplicate content flag though?
No, because the 301 means "Replace the URL you requested with this one." Smart user-agents will delete the old URL and use the new one... thus no duplication.