# Routing question

**URL:** <https://www.ruby-forum.com/t/routing-question/194928>\
**Category:** Rails\
**Created:** [September 13, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/routing-question/194928 "2010-09-13T23:17:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Correa\_dSAlmei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@Luis\_Correa\_dSAlmei](https://www.ruby-forum.com/u/Luis_Correa_dSAlmei)\
**Post date:** [September 13, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/routing-question/194928/1 "2010-09-13T23:17:15Z")

</div>

Hello

Given the following rules

MyApp::Application.routes.draw do |map|

```
resources :accounts do
    resources :comments
end

match '*path' => redirect("/accounts/%{path}")

```

end

Can we get ActionDispatch to, rather than redirect, re-run the routes?  
This would come in handy for using account handles, as in

[http://mymusicwebsite.com/metallica](http://mymusicwebsite.com/metallica)  
[http://mymusicwebsite.com/metallica/comments](http://mymusicwebsite.com/metallica/comments)  
[http://mymusicwebsite.com/metallica/comments/2](http://mymusicwebsite.com/metallica/comments/2)

rather than

[http://mymusicwebsite.com/accounts/metallica](http://mymusicwebsite.com/accounts/metallica)  
[http://mymusicwebsite.com/accounts/metallica/comments](http://mymusicwebsite.com/accounts/metallica/comments)  
[http://mymusicwebsite.com/accounts/metallica/comments/2](http://mymusicwebsite.com/accounts/metallica/comments/2)

Any help appreciated.
