# How do you ignore a URI prefix?

**URL:** <https://www.ruby-forum.com/t/how-do-you-ignore-a-uri-prefix/160496>\
**Category:** Rails\
**Created:** [February 17, 2009, 1:47am UTC](https://www.ruby-forum.com/t/how-do-you-ignore-a-uri-prefix/160496 "2009-02-17T01:47:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [February 17, 2009, 1:47am UTC](https://www.ruby-forum.com/t/how-do-you-ignore-a-uri-prefix/160496/1 "2009-02-17T01:47:06Z")

</div>

I’m using the directive RailsBaseURI to point to an application called  
myapp from my site [davidbeckwith.com](http://davidbeckwith.com). When I use the browser to point  
to [davidbeckwith.com/myapp](http://davidbeckwith.com/myapp), I get a routing error because the URI  
begins with /myapp.

How do I configure routes.rb or the Rails  
application to ignore the “/myapp” part of the URI so that I don’t  
have to rewrite all of my routes?

Thank you,

David 🙂

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [February 17, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/how-do-you-ignore-a-uri-prefix/160496/2 "2009-02-17T17:01:34Z")

</div>

This is a problem with your Passenger configuration, not Rails.
