troubleshooting Question

Rewrite Rules - impact if too many???

Avatar of lphillips120898
lphillips120898 asked on
Apache Web Server
2 Comments1 Solution958 ViewsLast Modified:
Hi,

We currently have about 30 Rewrite rules in our httpd.conf for one of our three virtual host.  The Web Infrastructure group is concerned that having too many of these will impact performance.  Is this true?  If so, how do you determine how many is too many?

I'm looking for information that will allow us to determine if we should or should not be using these rewrite rules - as we want/need to add more if it isn't going to impact site performance.  I would also be interested in hearing from those who use large numbers of these rules.

Below is a list of what we currently have.

Thanks,

Lisa

*** LIST ***
     RewriteEngine on

     #Rewrite Rules
     RewriteRule /professionalrecruiting http://www.MyWebSite.com/recruiting_home.html [NC]
     RewriteRule /staffing http://www.MyWebSite.com/staffing_home.html [NC]
     RewriteRule /humancapitalconsulting http://www.MyWebSite.com/hrc_home.html [NC]
     RewriteRule /technology/uk1 http://www.MyWebSite.com/technology/uk1.html [NC]
     RewriteRule /technology$ http://www.MyWebSite.com/technology_home.html [NC]
     RewriteRule /assessment http://www.MyWebSite.com/hrc_solutions_assessment.html [NC]
     RewriteRule /legal http://www.MyWebSite.com/recruiting_services_legal.html [NC]
     RewriteRule /outsourcing http://www.MyWebSite.com/outsrc_home.html [NC]
     RewriteRule /extranet/(.*) http://www4.MyWebSite.com/extranet/$1 [NC]
     RewriteRule /webmail http://webmail.MyWebSite.com [NC]
     RewriteRule /benefitpresentation http://www.MyWebSite.com/selfdirected.html [NC]
     RewriteRule /intranet http://intranet.MyWebSite.com [NC]
     RewriteRule /community/(.*) http://www4.MyWebSite.com/community/$1 [NC]
     RewriteRule /nl http://www4.MyWebSite.com/nl [NC]
     RewriteRule /custom/icc http://www4.MyWebSite.com/custom/icc [NC]
     RewriteRule /terms.cfm http://www.MyWebSite.com/corporate_termsofuse.html [NC]
     RewriteRule /copyright.cfm http://www4.MyWebSite.com/copyright.cfm [NC]
     RewriteCond %{HTTP_HOST} www.MyWebSiteprofessionalrecruiting.com
     RewriteRule (.*)$ http://www.MyWebSite.com/recruiting_home.html
     RewriteCond %{HTTP_HOST} www.MyWebSiteoutsourcing.com
     RewriteRule (.*)$ http://www.MyWebSite.com/outsrc_home.html
     RewriteCond %{HTTP_HOST} www.MyWebSitestaffing.com
     RewriteRule (.*)$ http://www.MyWebSite.com/staffing_home.html
     RewriteCond %{HTTP_HOST} www.MyWebSitehumancapitalconsulting.com
     RewriteRule (.*)$ http://www.MyWebSite.com/hrc_home.html
     RewriteCond %{HTTP_HOST} www.MyWebSitetechnology.com
     RewriteRule (.*)$ http://www.MyWebSite.com/technology_home.html
     RewriteCond %{HTTP_HOST} ^([^.]+)\.staffing\.MyWebSite\.com$
     RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
     RewriteRule ^([^.]+)\.staffing\.MyWebSite\.com http://www.MyWebSite.com/OfficeLocator/$1.html
     RewriteRule /leads http://www.MyWebSiteleads.com [NC]
     RewriteRule /guaranteed http://www.MyWebSite.com/hrc_outplacement.html [NC]
     RewriteRule /wedeliver http://www.MyWebSite.com/staffing_callsource.html [NC]
ASKER CERTIFIED SOLUTION
BigRat

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros