# Redirect root

**URL:** <https://www.ruby-forum.com/t/redirect-root/107330>\
**Category:** Rails\
**Created:** [June 20, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/redirect-root/107330 "2007-06-20T16:03:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [June 20, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/redirect-root/107330/1 "2007-06-20T16:03:48Z")

</div>

Hi all,

Can I redirect the root of my page to a contrroller/action? When I  
type [www.example.com/](http://www.example.com/) I don’t want to see the Rails welcome screen but  
want a redirect to a controller.

I found. map.index ‘’, :controller =\> ‘test’, :action =\> ‘index’ in an  
applicaction but it doesn’t work for me.

Thanks  
Stijn

---

<div class="post-metadata">

**Author:** ![Tarscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Post date:** [June 20, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/redirect-root/107330/2 "2007-06-20T16:19:50Z")

</div>

You need to delete $RAILS\_ROOT/public/index.html.
