cornernote/php-timesheet/master/.htaccess - Htaccess File

cornernote/php-timesheet/master/.htaccess

Options +FollowSymLinks

<Limit GET POST PUT DELETE>
    order deny,allow
    allow from all
</Limit>

<IfModule mod_autoindex.c>
    IndexIgnore */*
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine on
  #remove wwww  
  RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
  RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  
    # if a directory or a file exists, use it directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # otherwise forward it to index.php
    RewriteRule . index.php  
</IfModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
    <FilesMatch ".(js|css|html|htm|php|xml)$">
        SetOutputFilter DEFLATE
    </FilesMatch>
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresByType image/gif "access plus 1 day"
  ExpiresByType image/jpeg "access plus 1 day"
  ExpiresByType image/png "access plus 1 day"
  ExpiresByType text/css "access plus 1 day"
  ExpiresByType text/js "access plus 1 day"
  ExpiresByType text/javascript "access plus 1 day"
  ExpiresByType application/javascript "access plus 1 day"
  ExpiresByType application/x-javascript "access plus 1 day"
    <FilesMatch ".(jpe?g|png|gif|js|css)$">
        ExpiresDefault "access plus 1 day"
    </FilesMatch>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, GET, HTTP_HOST, POST, PUT, REQUEST_FILENAME

Comments

Apache