# Newbie learning ruby on rails question

**URL:** <https://www.ruby-forum.com/t/newbie-learning-ruby-on-rails-question/89910>\
**Category:** Rails\
**Created:** [March 29, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/newbie-learning-ruby-on-rails-question/89910 "2006-03-29T14:03:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robtotheb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/db5fbb/32.png) [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Post date:** [March 29, 2006, 2:03pm UTC](https://www.ruby-forum.com/t/newbie-learning-ruby-on-rails-question/89910/1 "2006-03-29T14:03:15Z")

</div>

I have designed a simple sign up, log-in and sign out system linked to a  
mysql database which is all working well.

My next challenge is for each user to have a sub domain like  
[sitename.com/username](http://sitename.com/username) or [username.sitename.com](http://username.sitename.com) once they have signed up.  
Also when the user has logged in they should be redirected to a admin  
page for his sub domain.

I’m confused at the best way to proceed.
