# RewriteBase w/ Capistrano on a shared host

**URL:** <https://www.ruby-forum.com/t/rewritebase-w-capistrano-on-a-shared-host/62962>\
**Category:** Rails\
**Created:** [June 9, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/rewritebase-w-capistrano-on-a-shared-host/62962 "2006-06-09T22:37:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbergy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@cbergy](https://www.ruby-forum.com/u/cbergy)\
**Post date:** [June 9, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/rewritebase-w-capistrano-on-a-shared-host/62962/1 "2006-06-09T22:37:42Z")

</div>

Hello,

I’m on a shared hosting, and tried this as a test:

```auto
svn co {repo} to /home/{user}/{appname}
ln -s {appname}/public/ public_html
chmod -R 755 trunk
```

With the .htaccess file’s RewriteBase directive set to /  
This setup works great, with no problems at all.

Here’s my issue, I’m attempting to use Capistrano, which is setup by  
default to checkout my app into a releases/{datetime} folder, then it  
creates a symlink inside my rails app directory named ‘current’ which  
points to the this new releases/{datetime} dir, like so:

ln -nfs /home/{user}/{appname}/releases/20060609173235  
/home/{user}/{appname}/current

I then point public\_html to {appname}/current/public/

I’m wondering if there’s a certain RewriteBase parameter, or Alias, or  
something to let Apache know how to properly follow the symlinks.

I know this is tricky to ask for support for, since each hosting  
environments is different. Any ideas would be appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![cbergy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@cbergy](https://www.ruby-forum.com/u/cbergy)\
**Post date:** [June 9, 2006, 11:53pm UTC](https://www.ruby-forum.com/t/rewritebase-w-capistrano-on-a-shared-host/62962/2 "2006-06-09T23:53:53Z")

</div>

I figured it out. Apparently, my shared host prefers relative symlinks  
to absolute.

Thanks anyhow!
