paolocerto/x3cms/master/INSTALL/file.htaccess - Htaccess File

paolocerto/x3cms/master/INSTALL/file.htaccess

Header unset ETag
FileETag None
<FilesMatch ".(ico|js|css|swf|gif|jpeg|png|mp4|ogv|flv|webm|ttf|eot|woff|woff2|svg)$">
Header unset Last-Modified
Header set Expires "Fri, 21 Dec 2024 00:00:00 GMT"
Header set Cache-Control "public, no-transform"
SetOutputFilter DEFLATE
</FilesMatch>

<FilesMatch ".(htm|html|css|js)$">
AddDefaultCharset UTF-8
</FilesMatch>

Options -Indexes

php_value zlib.output_compression 1
php_value session.use_trans_sid "off"
php_value upload_max_filesize 600M
php_value post_max_size 600M
php_value max_execution_time 1000
php_value max_input_time 1000

errorDocument 403 HTADOMAIN/msg/message/_page_not_found
errorDocument 404 HTADOMAIN/msg/message/_page_not_found

RewriteEngine On
RewriteBase HTAROOT

# remove comment redirect all traffic with www and without www to the same domain
#RewriteCond %{HTTP_HOST} !^WWWDOMAIN [NC]
#RewriteRule ^(.*)$ HTADOMAIN/$1 [L,R=301]
RewriteRule ^(.*)/$ $1 [L,R=301]

RewriteRule ^sitemap.xml$ cms/files/sitemap.xml [L]
RewriteRule ^cms/files/(.*)$ cms/files/$1 [L]
RewriteRule ^files/js/(.+)$ files/js/$1 [L]
RewriteRule !.(htm|html|js|ico|txt|gif|jpg|jpeg|png|css|less|pdf|xml|zip|swf|wmv|rm|mov|flv|mp4|ogv|webm|ttf|eot|woff|woff2|svg|json)$ page.php

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTP_HOST

Comments

Apache