Is there a major downside to using .htaccess files in your svn/git repository?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2010-05-16T15:17:58Z
Indexed on
2010/05/16
15:40 UTC
Read the original article
Hit count: 190
If our .htaccess files are purely for mod rewrites, is there a security / development downside to committing .htaccess files alongside other files in your repository?
For various reasons (our SEO optimisers like to add pretty urls as new promotions occur, etc) we need a fair few rewrite rules inside these files. Would I be better off pushing the routing into php-land and dealing with it there? Or is reading from a .htaccess via apache fine?
The .htaccess files are not exposed via the web server, so that's not a security risk.
© Stack Overflow or respective owner