I followed the PHP Minify instructions listed on this page to use a sub-directory, but it just returns a 400 bad request error at my test URL. Any ideas or leads on how to fix this?
Steps I followed
- Put min folder relative to my "demo-site's" root
- Added code snippet below as directed on the instructions page.
- Ran the URL test, returns a 400 bad request error.
More Info
Server: Wamp PHP v5.3
Location on server: var/www/demo-site
URL giving a 400 error: http://localhost/demo-site/min/f=min/quick-test.js
Code placed in config.php
// Set the document root to be the path of the "site root"
$min_documentRoot = substr(__FILE__, 0, -15);
// Set $sitePrefix to the path of the site from the webserver's real docroot
list($sitePrefix) = explode('/min/index.php', $_SERVER['SCRIPT_NAME'], 2);
// Prepend $sitePrefix to the rewritten URIs in CSS files
$min_symlinks['//' . ltrim($sitePrefix, '/')] = $min_documentRoot;