public static function checkHtaccess()
 {
     $htaccess = self::$config['BasePath'] . DIRECTORY_SEPARATOR . '.htaccess';
     $htaccessSample = self::$config['AppDir'] . 'public' . DIRECTORY_SEPARATOR . '.htaccess';
     try {
         if (!is_file($htaccess)) {
             copy($htaccessSample, $htaccess);
         } else {
             $contentSample = File::get_content($htaccessSample, false);
             $content = File::get_content($htaccess, false);
             if (self::$config['StaticCache']) {
                 if (strpos($content, 'BEGIN SpeedUpEssentials') == 0) {
                     file::put_content($htaccess, $contentSample . PHP_EOL . $content);
                 }
             } elseif (strpos($content, 'BEGIN SpeedUpEssentials') != 0) {
                 $newContent = str_replace($contentSample, '', $content);
                 file::put_content($htaccess, $newContent);
             }
         }
     } catch (Exception $exc) {
     }
 }