What would you do in this situation

we have a photo gallery site(around 3 yrs old)

we have another portal www.abc.com

that photo gallery site is well positioned in search engines #2 for some niche keywords

now we want to move that site as part of our main site abc.com
www.photos.abc.com

but we dont want to lose the search engine rankings in serp that xyz.com has got…

so what can we do…

we know we need to do 301 redirects…
as it is about whole site redirect,
what should be course of plan execution that you would suggest?

any ideas?

thanks

If you do a 301 redirect page by page on the old site, then you won’t lose any of your rankings. Additionally, all links that point to your old site will be forwarded to your new site so users won’t have issues either.

Nothing else required. :wink:

is there any way to say …
this whole website ie www.xyz.com/folder should be 301 redirected www.folder.abc.com
i mean whole folder redirect at once…
how can be .htaccess mod rewrite express look like for this operation

Is the file structure going to remain exactly the same? If so, you could use something like this:

RedirectMatch 301 ^/the_old_([^.]+)\.htm$ http://example.com/the-new-$1.htm

yes…i hope the file structure can remain same…
as i am just trying move the same system from one site to another
any way thanks