Update PVRouter.php

Fixing router to work with NGINX write rules and possible errors