codeguy/Slim — pull request #464 by michaelestrin (2012-12-16 23:21:13+00:00)
Title: Addresses 

Using AppFog to host. Shifted web root to `/public` using following Apache .htaccess:
```
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.myhostname.com$
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ /public/$1 [L]
```
`/public` directory contains its own Apache .htaccess:
```
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}\.php !-f
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ index.php/$1 [L]
```
With this configuration, the source (prior to this change) was creating an invalid `$env['PATH_INFO'] `value when requesting `http://sub.myhostname.com/hello`:
```
$_SERVER["REQUEST_URI"]: string '/hello' (length=6)
$_SERVER["SCRIPT_NAME"]: string '/public/index.php' (length=17)
$env["SCRIPT_NAME"]: string '/public' (length=7)
$env["PATH_INFO"]: string '' (length=0)
```
This change set removes the (incorrect, in this particular instance) assumption that `$_SERVER['REQUEST_URI']` is prefixed with the `$env['SCRIPT_NAME']` contents.