# Changing base url

**URL:** <https://www.ruby-forum.com/t/changing-base-url/132192>\
**Category:** Rails\
**Created:** [March 17, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/changing-base-url/132192 "2008-03-17T20:04:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@shaish](https://www.ruby-forum.com/u/shaish)\
**Post date:** [March 17, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/changing-base-url/132192/1 "2008-03-17T20:04:54Z")

</div>

hey, my rails app is viewed in a frame of another site.  
My problem is that because of that all my links and redirects move my  
site out of the frame and present the links on their own…I’ll try to  
explain better:

Lets say my domain is: [www.ror.com](http://www.ror.com)  
my home page is [www.ror.com/home/index](http://www.ror.com/home/index)  
but u should view it using: [www.frames.com/myapp/home/index](http://www.frames.com/myapp/home/index)  
(meaning my site should be viewed only through a frame in the  
[www.frames.com](http://www.frames.com)  
website)  
from the home page u can move with a link to a different page:  
lets say: link\_to ‘link’ :action =\> ‘show’  
now when u press the link the browser will go to [www.ror.com/home/show](http://www.ror.com/home/show)  
but I want it to go to [www.frames.com/myapp/home/show](http://www.frames.com/myapp/home/show)

In short I want to replace [www.ror.com](http://www.ror.com)  
to [www.frames.com/myapp](http://www.frames.com/myapp)

hope I made it clear enough…  
Thnx !
