dimaspermadiyp/web-absensi-pegawai/master/.htaccess - Htaccess File

dimaspermadiyp/web-absensi-pegawai/master/.htaccess

<IfModule mod_rewrite.c>

        Options +FollowSymLinks
        RewriteEngine on

        # Send request via index.php (again, not if its a real file or folder)
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d

        <IfModule mod_php5.c>
                RewriteRule ^(.*)$ index.php/$1 [L]
        </IfModule>                                     

        <IfModule !mod_php5.c>
                RewriteRule ^(.*)$ index.php?/$1 [L]
        </IfModule>

</IfModule> 

<IfModule mod_expires.c>
  # 1 YEAR
  <FilesMatch ".(ico|pdf|flv)$">
  Header set Cache-Control "max-age=29030400, public"
  </FilesMatch>
  # 1 WEEK
  <FilesMatch ".(jpg|jpeg|png|gif|swf)$">
  Header set Cache-Control "max-age=604800, public"
  </FilesMatch>
  # 2 DAYS
  <FilesMatch ".(xml|txt|css|js)$">
  Header set Cache-Control "max-age=172800, proxy-revalidate"
  </FilesMatch>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache