PHP Classes

File: public/.htaccess

Recommend this page to a friend!
  Classes of Bill Rocha  >  phatto  >  public/.htaccess  >  Download  
File: public/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: phatto
Register a service worker for PHP based PWA
Author: By
Last change:
Date: 1 year ago
Size: 711 bytes



Class file image Download
Options +Includes 
AddType text/html .html
AddOutputFilter INCLUDES .html 

AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss .atom
#AddType application/x-httpd-php phar
FileETag INode MTime Size
ServerSignature Off 

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule . index.php [L]

#Descomente quando estiver em PRODUÇÃO
#<IfModule mod_expires.c>
    #ExpiresActive  On
    #ExpiresDefault "access plus 1 week"
    #ExpiresByType  text/html "access plus 1 week"