hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : htaccess 301 Redirect Performance
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

htaccess 301 Redirect Performance

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-27-2011, 08:13 AM
ppwill ppwill is offline
Newbie
 
Join Date: Sep 2010
Posts: 12

htaccess 301 Redirect Performance


Hello,

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?

Thank you!

Reply With Quote


Sponsored Links
  #2  
Old 05-27-2011, 09:07 AM
relichost relichost is offline
Web Hosting Master
 
Join Date: Feb 2004
Location: UK
Posts: 1,429
Hi

Its doing two lookups for DNS I imagine. not sure if there is any other way.

are the two domains hosted on different servers ?

Thanks

__________________
Relichost Budget Hosting Cpanel-14 Days R1soft-Weekly Monthly Cpanel Backups (off site)
VPS Servers / Dedi's on request.



Reply With Quote
  #3  
Old 05-27-2011, 09:10 AM
ppwill ppwill is offline
Newbie
 
Join Date: Sep 2010
Posts: 12
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?

Thank you!

Reply With Quote
Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess and 301 redirect problem. bigu_c Hosting Security and Technology 2 05-16-2011 09:29 AM
.htaccess problem with 301 redirect keiki Programming Discussion 1 04-07-2011 06:13 PM
301 htaccess redirect exeptions? lexington Programming Discussion 1 06-29-2008 08:20 AM
301 redirect with .htaccess GreatDomainRace Hosting Security and Technology 3 07-12-2007 09:23 PM
htaccess redirect 301 WebPhaser Web Design and Content 3 12-30-2005 02:37 PM

Related posts from TheWhir.com
Title Type Date Posted
Yottaa Releases APIs for Partners and Public to Access Site Performance Metrics Web Hosting News 2012-01-25 15:54:29
DataCore Software Offers SAN Alternative for Windows Server Farms Web Hosting News 2011-11-01 18:23:56
Web Performance Firm Yottaa Announces Site Speed Optimizer General Availability Web Hosting News 2011-10-11 16:29:12
Go Daddy Helping Customers Repair Compromised Sites Web Hosting News 2011-09-16 14:35:03
Colocation Firm GNAX Launches Application Performance Management Tool Web Hosting News 2011-05-25 20:53:51


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?