redirect old site to a new site by keeping our SEO ranking and our current link mapped to the new site

Hi experts,

we redesign our website and moved to a different hosting company, in our old site we have some dynamics url with some SEO attached to that, we would like to make sure we are not loosing are SEO ranking so we wanted to use the htaccess file (with 301 redirect) in order to map the new locations for each one of the link. the htaccess file created is about 36MB so I am pretty sure it is too big to be efficient and for the server to time out. how would you accomplish this task without loosing are ranking and also by making sure all the old links are mapped to the new ones?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lucas BishopClick TrackerCommented:
I'm pretty sure that file size is not too big. However, it may prove to have negative performance implications.

Instead of using htaccess, put those rewrite rules inside of a <Directory> section in your main Apache config file:

This way the list of rewrite rules is loaded into memory when the server first initializes -- as opposed to the full list of rules being read every time a user visits the root domain.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
if you own the domain changing hosting companies will not affect you SEO/Ranking. You simply change the A or CNAME record at your registrar to the new location and wait for it to synchronize.
changed to
A 312.312.312.123
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Search Engine Optimization (SEO)

From novice to tech pro — start learning today.