Report this

What is the reason for this report?

Mod_rewrite 301 redirects surge memory in destiny server

Posted on August 2, 2015

Hi,

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:

Options +FollowSymLinks RewriteEngine on

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 Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.