convert file paths contain of index.php to base dirs