Apache Redirect Performance - .htaccess vs Apache configuration file ? -
I wonder if there are several redirect rules inside a .haccess file (say 10000+) can be a display problem is. (This file is parsed every access to the site)
Archiving them in the Apache configuration file will not be a better option (at the display point)?
Apache configuration is a better option in this case, because you do not have to .htaccess file on every access Read; Configure is read once, then stored in memory.
Please note, however, you will not be able to change your redirects on the fly. You must restart the server to make them effective.
Also, when you are concerned about performance at that level, then the apache will search your directories, so completely. (From that directory, which is served) / for the .htaccess file. Allow anyone
at & lt; Directory / & gt;
should work, and then do not enable it anywhere.
Comments
Post a Comment