changing urls if serviced on PHP CLI SAPI
Merge pull request #1 from tomfriedhof/master

changing urls if serviced on PHP CLI SAPI