Jump to content

Size of .htaccess file vs. performance


vineld

Recommended Posts

What would you consider to be the maximum size of an .htaccess file for a relatively high traffic site? Within which limits would you normally want to keep it?

 

Naturally the objective is to keep the file as small as possible with as few rewrite rules as possible.

 

At the moment I am working on a site where I have approximately 5-6 pattern rules and about 10 single pages added to the .htaccess. Is that good practice?

 

Also, does the order of the rewrite rules matter (except for those that would interfere with each other of course)?

Link to comment
Share on other sites

The size of a htacess file isn't a good indicator of performance.

 

 

Certain commands take longer to parse/execute than others.

 

5-6 patterns and 10 static redirects shouldn't be too crazy or anything, but if you have a lot of traffic it might be worth trying to optimize it if possible.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.