Refactoring htaccess/dont stat code