Mod_rewrite 301 redirects surge memory in destiny server
I’m facing a problem and i can’t figured out a solution.
I have an old website and domain in another server and i want to redirect all the pages to the new website and domain in DigitalOcean server.
To accomplish this i remove the old website and stablish the mod_rewrite redirects into htaccess.
The problem is, when i setup the redirects the memory and cpu of the destiny server (DigitalOcean new server) surge completely.
I have 3k URL redirects in the htaccess, here’s what i have in the file:
URL Redirect example
RewriteRule ^old-site-url/ https://www.newdomain.com/new-url/ [L,R=301,NC]
I really need some help.
Thanks in advance