Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 64 lines (52 sloc) 1.96 KB
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
<Files gen>
Order allow,deny
Deny from all
</Files>
<FilesMatch "(\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|json|lock|swp|xml|twig|gitignore|yml|md|jade|scss|sqlite3|html)|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
<ifModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# --- FORZAR HTTPS EN SU SITIO --- #
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ https://ocrend.com/$1 [R,L]
# --- FORZAR HTTPS EN SU SITIO --- #
# --- HELP PARA ROUTER DEL FRAMEWORK --- #
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?routing=$1 [QSA,L]
# --- HELP PARA ROUTER DEL FRAMEWORK --- #
</IfModule>
<IfModule mod_headers.c>
# Sirve archivos comprimidos gzip CSS si existen
# y el cliente acepta gzip.
RewriteCond "%{HTTP:Accept-encoding}" "gzip"
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]
# Sirve archivos comprimidos gzip JS si existen
# y el cliente acepta gzip.
RewriteCond "%{HTTP:Accept-encoding}" "gzip"
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
# Sirve los tipos de contenido correctos y evita mod_deflate double gzip.
RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
<FilesMatch "(\.js\.gz|\.css\.gz)$">
# Sirve el tipo de codificación correcto.
Header append Content-Encoding gzip
# Forzar proxies para almacenar en caché gzip y
# archivos css / js no comprimidos por separado.
Header append Vary Accept-Encoding
</FilesMatch>
# --- FORZAR CACHÉ POR 1 MES --- #
#<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|js|xml|txt|css|svg)$">
# Header set Cache-Control "max-age=2592000, public"
#</FilesMatch>
</IfModule>