- ##### THANOS CRAX | CRAX.PRO | v1.01 #####
- ## EXPIRES CACHING ##
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType text/css "access plus 1 year"
- ExpiresByType text/x-component "access plus 1 year"
- ExpiresByType application/x-javascript "access plus 1 year"
- ExpiresByType application/javascript "access plus 1 year"
- ExpiresByType text/javascript "access plus 1 year"
- ExpiresByType text/x-js "access plus 1 year"
- ExpiresByType text/html "access plus 3 days"
- ExpiresByType text/richtext "access plus 3 days"
- ExpiresByType image/svg+xml "access plus 3 days"
- ExpiresByType text/plain "access plus 3 days"
- ExpiresByType text/xsd "access plus 3 days"
- ExpiresByType text/xsl "access plus 3 days"
- ExpiresByType text/xml "access plus 3 days"
- ExpiresByType video/asf "access plus 1 year"
- ExpiresByType video/avi "access plus 1 year"
- ExpiresByType image/bmp "access plus 1 year"
- ExpiresByType application/java "access plus 1 year"
- ExpiresByType video/divx "access plus 1 year"
- ExpiresByType application/msword "access plus 1 year"
- ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
- ExpiresByType application/x-msdownload "access plus 1 year"
- ExpiresByType image/gif "access plus 1 year"
- ExpiresByType application/x-gzip "access plus 1 year"
- ExpiresByType image/x-icon "access plus 1 year"
- ExpiresByType image/jpeg "access plus 1 year"
- ExpiresByType application/json "access plus 1 year"
- ExpiresByType application/vnd.ms-access "access plus 1 year"
- ExpiresByType audio/midi "access plus 1 year"
- ExpiresByType video/quicktime "access plus 1 year"
- ExpiresByType audio/mpeg "access plus 1 year"
- ExpiresByType video/mp4 "access plus 1 year"
- ExpiresByType video/mpeg "access plus 1 year"
- ExpiresByType application/vnd.ms-project "access plus 1 year"
- ExpiresByType application/x-font-otf "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.database "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.chart "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.formula "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.graphics "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.presentation "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.spreadsheet "access plus 1 year"
- ExpiresByType application/vnd.oasis.opendocument.text "access plus 1 year"
- ExpiresByType audio/ogg "access plus 1 year"
- ExpiresByType application/pdf "access plus 1 year"
- ExpiresByType image/png "access plus 1 year"
- ExpiresByType application/vnd.ms-powerpoint "access plus 1 year"
- ExpiresByType audio/x-realaudio "access plus 1 year"
- ExpiresByType image/svg+xml "access plus 1 year"
- ExpiresByType application/x-shockwave-flash "access plus 1 year"
- ExpiresByType application/x-tar "access plus 1 year"
- ExpiresByType image/tiff "access plus 1 year"
- ExpiresByType application/x-font-ttf "access plus 1 year"
- ExpiresByType audio/wav "access plus 1 year"
- ExpiresByType audio/wma "access plus 1 year"
- ExpiresByType application/vnd.ms-write "access plus 1 year"
- ExpiresByType application/vnd.ms-excel "access plus 1 year"
- ExpiresByType application/zip "access plus 1 year"
- ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
-
- # Add a far future Expires header for fonts
- ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
- ExpiresByType application/x-font-ttf "access plus 1 year"
- ExpiresByType application/x-font-opentype "access plus 1 year"
- ExpiresByType application/x-font-woff "access plus 1 year"
- ExpiresByType application/font-woff2 "access plus 1 month"
- ExpiresByType image/svg+xml "access plus 1 year"
- ExpiresByType application/x-font-woff2 "access plus 1 year"
- ExpiresByType application/font-woff2 "access plus 1 year"
-
- </IfModule>
- ## EXPIRES CACHING ##
-
-
-
-
-
-
-
-
- #XNFORO.IR CODE
- # BEGIN GZIP
- # mod_gzip compression (legacy, Apache 1.3)
- <IfModule mod_gzip.c>
- mod_gzip_on Yes
- mod_gzip_dechunk Yes
- mod_gzip_item_include file .(html?|xml|txt|css|js|php)$
- mod_gzip_item_include handler ^cgi-script$
- mod_gzip_item_include mime ^text/.*
- mod_gzip_item_include mime ^application/x-javascript.*
- mod_gzip_item_exclude mime ^image/.*
- mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
-
- </IfModule>
- # END GZIP
-
-
-
-
- # DEFLATE compression
- <IfModule mod_deflate.c>
- # Set compression for: html,txt,xml,js,css
- AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
- # Deactivate compression for buggy browsers
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4.0[678] no-gzip
- BrowserMatch bMSIE !no-gzip !gzip-only-text/html
- # Set header information for proxies
- Header append Vary User-Agent
- </IfModule>
- # END DEFLATE
-
-
- ############ SECURITY ###########
- <FilesMatch "\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">
- Order allow,deny
- Deny from all
- </FilesMatch>
-
- <Files robots.txt>
- Allow from all
- </Files>
-
-
-
-
-
- ######### Piepcomp SETTING END ############
-
-
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- RewriteRule ^index\.php$ - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.php [L]
- </IfModule>
-
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault A31536000
-
- <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
- ExpiresDefault A31536000
- </FilesMatch>
-
- <FilesMatch "\.(css|htc|js|js2|js3|js4|CSS|HTC|JS|JS2|JS3|JS4)$">
- ExpiresDefault A31536000
- </FilesMatch>
-
- <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac)$">
- ExpiresDefault A31536000
- </FilesMatch>
-
- <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
- ExpiresDefault A31536000
- </FilesMatch>
- </IfModule>
-
- <IfModule mod_headers.c>
- <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML|php)$">
- Header set Cache-Control "max-age=31536000, public"
- </FilesMatch>
-
- <FilesMatch "\.(css|htc|js|js2|js3|js4|CSS|HTC|JS|JS2|JS3|JS4)$">
- Header set Cache-Control "max-age=31536000, public"
- </FilesMatch>
-
- <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
- Header set Cache-Control "max-age=31536000, public"
- </FilesMatch>
-
- <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
- Header set Cache-Control "max-age=31536000, public"
- </FilesMatch>
- </IfModule>
-
- <IfModule mod_deflate.c>
- <IfModule mod_setenvif.c>
- <IfModule mod_headers.c>
- SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
- RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
- </IfModule>
- </IfModule>
- <IfModule mod_filter.c>
- AddOutputFilterByType DEFLATE "application/atom+xml" \
- "application/javascript" \
- "application/json" \
- "application/ld+json" \
- "application/manifest+json" \
- "application/rdf+xml" \
- "application/rss+xml" \
- "application/schema+json" \
- "application/vnd.geo+json" \
- "application/vnd.ms-fontobject" \
- "application/x-font-ttf" \
- "application/x-javascript" \
- "application/x-web-app-manifest+json" \
- "application/xhtml+xml" \
- "application/xml" \
- "font/eot" \
- "font/opentype" \
- "image/bmp" \
- "image/svg+xml" \
- "image/vnd.microsoft.icon" \
- "image/x-icon" \
- "text/cache-manifest" \
- "text/css" \
- "text/html" \
- "text/javascript" \
- "text/plain" \
- "text/vcard" \
- "text/vnd.rim.location.xloc" \
- "text/vtt" \
- "text/x-component" \
- "text/x-cross-domain-policy" \
- "text/xml"
-
- </IfModule>
- <IfModule mod_mime.c>
- AddEncoding gzip svgz
- AddType text/css .css
- AddType text/x-component .htc
- AddType application/x-javascript .js
- AddType application/javascript .js2
- AddType text/javascript .js3
- AddType text/x-js .js4
- AddType text/html .html .htm
- AddType text/richtext .rtf .rtx
- AddType image/svg+xml .svg .svgz
- AddType text/plain .txt
- AddType text/xsd .xsd
- AddType text/xsl .xsl
- AddType text/xml .xml
- AddType video/asf .asf .asx .wax .wmv .wmx
- AddType video/avi .avi
- AddType image/bmp .bmp
- AddType application/java .class
- AddType video/divx .divx
- AddType application/msword .doc .docx
- AddType application/vnd.ms-fontobject .eot
- AddType application/x-msdownload .exe
- AddType image/gif .gif
- AddType application/x-gzip .gz .gzip
- AddType image/x-icon .ico
- AddType image/jpeg .jpg .jpeg .jpe
- AddType application/json .json
- AddType application/vnd.ms-access .mdb
- AddType audio/midi .mid .midi
- AddType video/quicktime .mov .qt
- AddType audio/mpeg .mp3 .m4a
- AddType video/mp4 .mp4 .m4v
- AddType video/mpeg .mpeg .mpg .mpe
- AddType application/vnd.ms-project .mpp
- AddType application/x-font-otf .otf
- AddType application/vnd.oasis.opendocument.database .odb
- AddType application/vnd.oasis.opendocument.chart .odc
- AddType application/vnd.oasis.opendocument.formula .odf
- AddType application/vnd.oasis.opendocument.graphics .odg
- AddType application/vnd.oasis.opendocument.presentation .odp
- AddType application/vnd.oasis.opendocument.spreadsheet .ods
- AddType application/vnd.oasis.opendocument.text .odt
- AddType audio/ogg .ogg
- AddType application/pdf .pdf
- AddType image/png .png
- AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
- AddType audio/x-realaudio .ra .ram
- AddType application/x-shockwave-flash .swf
- AddType application/x-tar .tar
- AddType image/tiff .tif .tiff
- AddType application/x-font-ttf .ttf .ttc
- AddType audio/wav .wav
- AddType audio/wma .wma
- AddType application/vnd.ms-write .wri
- AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
- AddType application/zip .zip
-
-
-
- # Fonts
- # Add correct content-type for fonts
- AddType application/vnd.ms-fontobject .eot
- AddType application/x-font-ttf .ttf
- AddType application/x-font-opentype .otf
- AddType application/x-font-woff .woff
- AddType image/svg+xml .svg
- AddType application/font-woff .woff
- AddType application/font-woff2 .woff2
-
- </IfModule>
-
- </IfModule>
-
-
-
-
-
-
- <IfModule mod_deflate.c>
-
- # Compress HTML, CSS, JavaScript, Text, XML and fonts
-
- AddOutputFilterByType DEFLATE application/javascript
-
- AddOutputFilterByType DEFLATE application/rss+xml
-
- AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
-
- AddOutputFilterByType DEFLATE application/x-font
-
- AddOutputFilterByType DEFLATE application/x-font-opentype
-
- AddOutputFilterByType DEFLATE application/x-font-otf
-
- AddOutputFilterByType DEFLATE application/x-font-truetype
-
- AddOutputFilterByType DEFLATE application/x-font-ttf
-
- AddOutputFilterByType DEFLATE application/x-javascript
-
- AddOutputFilterByType DEFLATE application/xhtml+xml
-
- AddOutputFilterByType DEFLATE application/xml
-
- AddOutputFilterByType DEFLATE font/opentype
-
- AddOutputFilterByType DEFLATE font/otf
-
- AddOutputFilterByType DEFLATE font/ttf
-
- AddOutputFilterByType DEFLATE image/svg+xml
-
- AddOutputFilterByType DEFLATE image/x-icon
-
- AddOutputFilterByType DEFLATE text/css
-
- AddOutputFilterByType DEFLATE text/html
-
- AddOutputFilterByType DEFLATE text/javascript
-
- AddOutputFilterByType DEFLATE text/plain
-
- AddOutputFilterByType DEFLATE text/xml
-
- # Remove browser bugs (only needed for really old browsers)
-
- BrowserMatch ^Mozilla/4 gzip-only-text/html
-
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
-
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
-
- Header append Vary User-Agent
-
- </IfModule>
-
-
- <IfModule mod_headers.c>
- # Serve gzip compressed CSS and JS files if they exist
- # and the client accepts gzip.
- RewriteCond "%{HTTP:Accept-encoding}" "gzip"
- RewriteCond "%{REQUEST_FILENAME}\.gz" -s
- RewriteRule "^(.*)\.(css|js)" "$1\.$2\.gz" [QSA]
-
- # Serve correct content types, and prevent 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)$">
- # Serve correct encoding type.
- Header append Content-Encoding gzip
-
- # Force proxies to cache gzipped &
- # non-gzipped css/js files separately.
- Header append Vary Accept-Encoding
- </FilesMatch>
- </IfModule>
-
- ##### THANOS CRAX | CRAX.PRO #####