Fix for the directory condition in htaccess