changing urls if serviced on PHP CLI SAPI

Modifying the URL to not use clean urls if using the PHP CLI SAPI