View Single Post
Old 11-19-2011, 05:19 PM  
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
Quote:
Originally Posted by Mutt View Post
not to sound dumber than I am but what goes in where it says '/somepath/' ?
Code:
RedirectMatch permanent ^/?galleries/(.+) http://www.domain.com/newgalleries/$1

OR something like this

RedirectMatch permanent ^/?galleries/gal01.html http://www.domain.com/newgalleries/gal01/
RedirectMatch permanent ^/?galleries/gal02.html http://www.domain.com/newgalleries/gal02/

Quote:
Originally Posted by Mutt View Post
i'm using the same domain, all old gallery URL's will be gone, so want all the old gallery URL's that are in search engines to just redirect to the main page of the domain.
Eh? That's not what you asked for.. So are the pages still going to exist or are they gone for good? If you just want to redirect to the main page, I'd just do it as a 404. Maybe you could do a redirect to pass on any link juice that were going to the galleries, might be worth it.. On the other hand you might also transfer the anchor text which might not be good for the main page.. Once the SEs figure out that those pages no longer exist, they might just discount all those links anyway. IMO it would be better to just 404 them if you're just wanting to get rid of them.
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote