# URL Redirect Question?

**URL:** <https://forum.kirupa.com/t/url-redirect-question/223089>\
**Category:** Uncategorized\
**Created:** [April 19, 2007, 1:09pm UTC](https://forum.kirupa.com/t/url-redirect-question/223089 "2007-04-19T13:09:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PDidee](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pdidee/32/3438_2.png) [@PDidee](https://forum.kirupa.com/u/PDidee)\
**Post date:** [April 19, 2007, 1:09pm UTC](https://forum.kirupa.com/t/url-redirect-question/223089/1 "2007-04-19T13:09:31Z")

</div>

I have an FTP that would like to host two web sites on in two different directories. I have two domain names that point to the same server.  
QUESTION: Is it possible to redirect a user to a specific directory they type into their browser?  
ie. If user types [www.site1.com](http://www.site1.com) they are directed to [www.mainsite.com/site1/index.html](http://www.mainsite.com/site1/index.html)  
and if user types [www.site2.com](http://www.site2.com) they are directed to [www.mainsite.com/site2/index.html](http://www.mainsite.com/site2/index.html)

:q:
