troubleshooting Question

Rewrite Rules - impact if too many???

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

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.



*** LIST ***
     RewriteEngine on

     #Rewrite Rules
     RewriteRule /professionalrecruiting [NC]
     RewriteRule /staffing [NC]
     RewriteRule /humancapitalconsulting [NC]
     RewriteRule /technology/uk1 [NC]
     RewriteRule /technology$ [NC]
     RewriteRule /assessment [NC]
     RewriteRule /legal [NC]
     RewriteRule /outsourcing [NC]
     RewriteRule /extranet/(.*)$1 [NC]
     RewriteRule /webmail [NC]
     RewriteRule /benefitpresentation [NC]
     RewriteRule /intranet [NC]
     RewriteRule /community/(.*)$1 [NC]
     RewriteRule /nl [NC]
     RewriteRule /custom/icc [NC]
     RewriteRule /terms.cfm [NC]
     RewriteRule /copyright.cfm [NC]
     RewriteCond %{HTTP_HOST}
     RewriteRule (.*)$
     RewriteCond %{HTTP_HOST}
     RewriteRule (.*)$
     RewriteCond %{HTTP_HOST}
     RewriteRule (.*)$
     RewriteCond %{HTTP_HOST}
     RewriteRule (.*)$
     RewriteCond %{HTTP_HOST}
     RewriteRule (.*)$
     RewriteCond %{HTTP_HOST} ^([^.]+)\.staffing\.MyWebSite\.com$
     RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
     RewriteRule ^([^.]+)\.staffing\.MyWebSite\.com$1.html
     RewriteRule /leads [NC]
     RewriteRule /guaranteed [NC]
     RewriteRule /wedeliver [NC]

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