# Public/.htaccess has to be recreated manually everytime?

**URL:** <https://www.ruby-forum.com/t/public-htaccess-has-to-be-recreated-manually-everytime/177678>\
**Category:** Deployment\
**Created:** [October 21, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/public-htaccess-has-to-be-recreated-manually-everytime/177678 "2009-10-21T21:24:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [October 21, 2009, 9:24pm UTC](https://www.ruby-forum.com/t/public-htaccess-has-to-be-recreated-manually-everytime/177678/1 "2009-10-21T21:24:48Z")

</div>

Hi all

I’m deploying my Rails app using capistrano.  
Everything works great, except that I always have to recreate my  
.htaccess file in the public directory. How should I fix this?

Thanks  
Josh
