Apache URL rewrite logic can be written either in conf or .htaccess file. Which one is more suitable, for which occasion? And let's say I have .htaccess in my web root directory, and I have a conf file defined on Apache/conf directory also, which file will kick in first?
To address just one part of your question: if you don't need the increased flexibility of a
.htaccess file in different directories, don't use them; they slow down processing of requests.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki