added if clause to markup htaccess