cashmusic/DIY — Issue #137: Admin .htaccess fun
Author: jessevondoom
Created: 2011-11-10 17:59:58+00:00
State: open
Labels: admin

Seeing 403 forbidden issues with different behavior in different places. It has to do with requesting the root directory of the admin with or without a trailing slash. (so whatever.com/cashmusic/admin versus whatever.com/cashmusic/admin/) Seems to be primarily centered around this line:

```
DirectorySlash Off
```
On my local machine (MAMP, running on OSX 10.5) setting DirectorySlash Off fixes things. Both /admin and /admin/ work properly. If set to On, /admin/ works, but /admin pitches a fit and tries to redirect things to /admin/?p=... so it's almost as if it's trying to add the slash and somehow rewrite at the same time? The result is a 403 error.

On a test install at dreamhost setting DirectorySlash Off causes problems. /admin/ works, but /admin gives a 403. Setting DirectorySlash to On fixes the problem and makes both /admin and /admin/ work correctly with none of the odd redirect issues as with my local machine.

Qué motherfucking pasa?!?