vineld Posted July 28, 2009 Share Posted July 28, 2009 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)? Quote Link to comment https://forums.phpfreaks.com/topic/167751-size-of-htaccess-file-vs-performance/ Share on other sites More sharing options...
corbin Posted July 29, 2009 Share Posted July 29, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/167751-size-of-htaccess-file-vs-performance/#findComment-885622 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.