# HTML directory rerouting

**URL:** <https://forum.kirupa.com/t/html-directory-rerouting/244365>\
**Category:** web dev\
**Created:** [November 16, 2007, 8:15pm UTC](https://forum.kirupa.com/t/html-directory-rerouting/244365 "2007-11-16T20:15:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterpatrick](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@misterpatrick](https://forum.kirupa.com/u/misterpatrick)\
**Post date:** [November 16, 2007, 8:15pm UTC](https://forum.kirupa.com/t/html-directory-rerouting/244365/1 "2007-11-16T20:15:00Z")

</div>

Hi all,

here is a simple question. How do I reroute users (aliases somewhere in a config?) when they use a URL like [http://www.domain.com/foobar](http://www.domain.com/foobar) when the html file I want to load is located in the root directory and not called index.html? My workaround is to put a rerouting index.html inside of the directory fobar that routes to the file foobar.html in the root directory. Seems like there should be a cleaner method.
