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
https://forums.phpfreaks.com/topic/167751-size-of-htaccess-file-vs-performance/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.