# Very very basic question

**URL:** <https://www.ruby-forum.com/t/very-very-basic-question/50008>\
**Category:** Rails\
**Created:** [December 12, 2005, 2:45am UTC](https://www.ruby-forum.com/t/very-very-basic-question/50008 "2005-12-12T02:45:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![super-newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@super-newbie](https://www.ruby-forum.com/u/super-newbie)\
**Post date:** [December 12, 2005, 2:45am UTC](https://www.ruby-forum.com/t/very-very-basic-question/50008/1 "2005-12-12T02:45:37Z")

</div>

Ok, I’ve got a test app written and it’s accessible at  
[http://localhost/hello/](http://localhost/hello/)

I want it accessible at [http://localhost/](http://localhost/) instead. In the public  
directory there is the index.html that has all the ‘Welcome to rails’  
stuff. Is there a way to have it skip over that completely (i.e. not  
use a redirect) and go to hello/ instead?

I assume changing my documentroot wouldn’t be the answer unless I’m  
supposed to set it to /var/www/rails/helloapp/hello instead of  
/var/www/rails/helloapp

Thx.

---

<div class="post-metadata">

**Author:** ![super-newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@super-newbie](https://www.ruby-forum.com/u/super-newbie)\
**Post date:** [December 12, 2005, 3:06am UTC](https://www.ruby-forum.com/t/very-very-basic-question/50008/2 "2005-12-12T03:06:18Z")

</div>

Add map.connect ‘’, :controller =\> ‘hello’ to your routes and delete  
index.html file from public/ directory.

Kent.

---

<div class="post-metadata">

**Author:** ![super-newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@super-newbie](https://www.ruby-forum.com/u/super-newbie)\
**Post date:** [December 12, 2005, 3:12am UTC](https://www.ruby-forum.com/t/very-very-basic-question/50008/3 "2005-12-12T03:12:11Z")

</div>

Kent S. wrote:

> Add map.connect ‘’, :controller =\> ‘hello’ to your routes and delete  
> index.html file from public/ directory.
> 
> Kent.

Thanks!!!
