just a question about running 'mod_rewrite' using the .htaccess file
Whilst looking for info about running 'mod_rewrite' using .htaccess file for a website I found an article on
http://apache.org stating that the preffered way of using '.htaccess' files would be in the main server config file as using it in the root of a domain / folder effected
server performance. see this page:
http://httpd.apache.org/.../howto/htaccess.html This is part of what this page says: .....in general, use of .htaccess files should be avoided when possible. Any configuration that you would consider putting in a .htaccess file, can just as effectively be made in a <Directory> section in your main server configuration file.......
the .htaccess file is loaded every time a document is requested.........note that Apache must look for .htaccess files in all higher-level directories, in order to have a full complement of directives that it must apply. (See section on how directives are applied.) Thus, if a file is requested out of a directory /www/htdocs/example, Apache must look for the following files:
/.htaccess
/www/.htaccess
/www/htdocs/.htaccess
/www/htdocs/example/.htaccess
And so, for each file access out of that directory, there are 4 additional file-system accesses, even if none of those files are present.............
How would I configure 'mod_rewrite' rules in the main server httpd.conf file?
Can this be configured for individual domains hosted on the same server?
Thanks
Colin Thompson