added 2nd comment for checkfor function, htaccess check change