var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
htaccess 301 Redirect Performance
I'm currently redirecting all pages from my old domain to my new domain by using a htaccess 301 redirect.
The htaccess code I'm using is:
RedirectMatch permanent /.* http://domain.com/
After uploading this file to my domain, my load spiked from 1.34~ to about 8.75~ constant.
I was wondering if there's a more optimized way of implementing this htaccess 301 redirect? To clarify, I want to redirect all pages from my old domain to my homepage on my new domain.
Does anyone have any suggestions?
Its doing two lookups for DNS I imagine. not sure if there is any other way.
are the two domains hosted on different servers ?
Yes, both sites are hosted on the same server.
I always thought htaccess was the most efficient way but there's just so much performance lost when using the above htaccess redirect code.
Do you have any suggestions as to what I could try doing to help reduce the load?
By bigu_c in forum Hosting Security and Technology
Last Post: 05-16-2011, 09:29 AM
By keiki in forum Programming Discussion
Last Post: 04-07-2011, 06:13 PM
By lexington in forum Programming Discussion
Last Post: 06-29-2008, 08:20 AM
By GreatDomainRace in forum Hosting Security and Technology
Last Post: 07-12-2007, 09:23 PM
By WebPhaser in forum Web Design and Content
Last Post: 12-30-2005, 02:37 PM