# 404 on Directory without forward slash

**URL:** <https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818>\
**Category:** Rails\
**Created:** [February 26, 2007, 7:04am UTC](https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818 "2007-02-26T07:04:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/bb73d2/32.png) [@xia](https://www.ruby-forum.com/u/xia)\
**Post date:** [February 26, 2007, 7:04am UTC](https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818/1 "2007-02-26T07:04:52Z")

</div>

Has anyone else encountered this problem? Railsplayground support are  
looking into it but don’t know how to fix it either just yet.

Basically a directory sitting under public/ at public/my\_things/ is  
accessible via [http://www.mysite.com/my\_things/](http://www.mysite.com/my_things/) but not  
[http://www.mysite.com/my\_things](http://www.mysite.com/my_things) (ie without the slash). it returns a  
404.

from railsplayground:

"I could see that my\_things is a folder under your public folder.  
Usually, if it were a Rails Controller, your Rails application would  
have taken care of the request. Since my\_things is a normal folder, I  
thought it has something to do with the canonical names. I tried to turn  
off the canonical names in the apache configuration file. I even tried  
with setting up redirections in the .htaccess file. But I couldn’t see  
any difference. "

---

<div class="post-metadata">

**Author:** ![xia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/bb73d2/32.png) [@xia](https://www.ruby-forum.com/u/xia)\
**Post date:** [February 27, 2007, 2:17am UTC](https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818/2 "2007-02-27T02:17:41Z")

</div>

On 2/25/07, Xia \_\_ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Has anyone else encountered this problem? Railsplayground support are  
> looking into it but don’t know how to fix it either just yet.
> 
> Basically a directory sitting under public/ at public/my\_things/ is  
> accessible via [http://www.mysite.com/my\_things/](http://www.mysite.com/my_things/) but not  
> [http://www.mysite.com/my\_things](http://www.mysite.com/my_things) (ie without the slash). it returns a  
> 404.

GIYF: googling for “apache trailing slash” returns numerous hits on  
possible causes and solutions.

J.

---

<div class="post-metadata">

**Author:** ![xia](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/bb73d2/32.png) [@xia](https://www.ruby-forum.com/u/xia)\
**Post date:** [February 28, 2007, 3:43am UTC](https://www.ruby-forum.com/t/404-on-directory-without-forward-slash/86818/3 "2007-02-28T03:43:06Z")

</div>

Jordan K. wrote:

> On 2/25/07, Xia \_\_ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Has anyone else encountered this problem? Railsplayground support are  
> > looking into it but don’t know how to fix it either just yet.
> > 
> > Basically a directory sitting under public/ at public/my\_things/ is  
> > accessible via [http://www.mysite.com/my\_things/](http://www.mysite.com/my_things/) but not  
> > [http://www.mysite.com/my\_things](http://www.mysite.com/my_things) (ie without the slash). it returns a  
> > 404.
> 
> GIYF: googling for “apache trailing slash” returns numerous hits on  
> possible causes and solutions.
> 
> J.

yeah haven’t been able to get any of that working, neither could web  
host. dirty html redirect has temporarily fixed the problem
