atospeps/resto/master/.htaccess - Htaccess File

atospeps/resto/master/.htaccess

<IfModule mod_rewrite.c>

    RewriteEngine On

    # IMPORTANT : change this to match your installation 
    RewriteBase /resto/
    
    # Transmit authorization to PHP
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
    # Do not apply the rewrite rules to existing directories, files and/or links
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l
    
    # Rewrite /a/b/c/d to index.php?RESToURL=/a/b/c/d
    RewriteRule ^(.*)$ index.php?RESToURL=$1 [QSA,NC,L]

</IfModule>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresByType application/pdf "access 1 month"
    #ExpiresByType text/html "access 1 month"
    #ExpiresByType text/css "access 1 month"
    #ExpiresByType text/x-javascript "access 1 month"
    #ExpiresDefault "access 1 month"
    <IfModule mod_headers.c>
        Header append Cache-Control "public"
    </IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache