- Joined
- Apr 11, 2012
- Messages
- 283
- Reaction score
- 55
Apache advise "in general, use of .htaccess files should be avoided when possible". This is for performance and security reasons.
Source: http://httpd.apache.org/docs/2.2/howto/htaccess.html#when
The reason I am posting this is because a lot of people seem to use an access file (commonly named .htaccess but can be named anything) as a matter of routine.
I've got my own servers so always configure the main Apache config file but I appreciate others are on shared hosting and can't do that, but I would seriously consider if you need to use the .htaccess file at all. A lot of the stuff is either a waste of time or can be achieved by other means (redirects in PHP for example).
The performance hit would be the biggest concern for me.
Source: http://httpd.apache.org/docs/2.2/howto/htaccess.html#when
The reason I am posting this is because a lot of people seem to use an access file (commonly named .htaccess but can be named anything) as a matter of routine.
I've got my own servers so always configure the main Apache config file but I appreciate others are on shared hosting and can't do that, but I would seriously consider if you need to use the .htaccess file at all. A lot of the stuff is either a waste of time or can be achieved by other means (redirects in PHP for example).
The performance hit would be the biggest concern for me.