Update lib/htaccess.php

bugs fixes