Quote:
Originally Posted by kurtk
in the virtual host configuration file. Do I just add DOCUMENT_ROOT like this?
|
No, just use the same rules inside the virtualhost container that you would in the .htaccess file. When you're sure it's working, AllowOverride None in the main config file to disable .htaccess altogether.
daejuanj - the config files are read once, on Apache startup. .htaccess files (in the request directory and parent directories) are read on every single request. It's not much of an overhead for one or two rules in one .htaccess file but with larger rule sets or several files it adds up. If you have access to the config files, why not take advantage of it?