# Change link\_to routing http://domain.tdl/static/application

**URL:** <https://www.ruby-forum.com/t/change-link-to-routing-http-domain-tdl-static-application/150758>\
**Category:** Rails\
**Created:** [October 12, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/change-link-to-routing-http-domain-tdl-static-application/150758 "2008-10-12T20:02:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaosbanane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chaosbanane](https://www.ruby-forum.com/u/chaosbanane)\
**Post date:** [October 12, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/change-link-to-routing-http-domain-tdl-static-application/150758/1 "2008-10-12T20:02:36Z")

</div>

Hi

I have a mongrel proxy that listen on that url:  
[http://www.domain.tdl/blaa/main/index](http://www.domain.tdl/blaa/main/index). The ‘blaa’ is a static link that  
activates the proxy.

How can I change the rails routing, that every link directs to  
[http://www.domain.tdl/blaa/.../index](http://www.domain.tdl/blaa/.../index) and not like it is at the moment to  
[http://www.domain.tdl/main/index](http://www.domain.tdl/main/index) ?

So the problem is that everytime when I click on a link I get an error  
that the file is not existing, naturally.

Greetings Andi

---

<div class="post-metadata">

**Author:** ![chaosbanane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chaosbanane](https://www.ruby-forum.com/u/chaosbanane)\
**Post date:** [October 12, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/change-link-to-routing-http-domain-tdl-static-application/150758/2 "2008-10-12T21:17:49Z")

</div>

okay is not nessesary anymore, i found an other way 😉

---

<div class="post-metadata">

**Author:** ![chaosbanane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chaosbanane](https://www.ruby-forum.com/u/chaosbanane)\
**Post date:** [October 13, 2008, 2:08am UTC](https://www.ruby-forum.com/t/change-link-to-routing-http-domain-tdl-static-application/150758/3 "2008-10-13T02:08:24Z")

</div>

You have to add a prefix line in the mongrel that you are running…

Starting mongrel with a prefix

mongrel\_rails start -e production -d --prefix /blaa

On Oct 12, 12:17 pm, Andi G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
