Hi, thanks for the reply. Ok, so I've changed to /index.php, but $_SERVER['SCRIPT_FILENAME'] is now /var/www/testsite//index.php (double slash before index.php) while the nginx $request_filename is correct. Surely that isn't right? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214376,214388#msg-214388