Add $phpcid query parameter on each redirect

Fixes $phpcid variable