Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../var/softacul.../magento2
File: pubstatic_.htaccess
<IfModule mod_php5.c>
[0] Fix | Delete
php_flag engine 0
[1] Fix | Delete
</IfModule>
[2] Fix | Delete
[3] Fix | Delete
<IfModule mod_php7.c>
[4] Fix | Delete
php_flag engine 0
[5] Fix | Delete
</IfModule>
[6] Fix | Delete
[7] Fix | Delete
# To avoid situation when web server automatically adds extension to path
[8] Fix | Delete
Options -MultiViews
[9] Fix | Delete
[10] Fix | Delete
<IfModule mod_rewrite.c>
[11] Fix | Delete
RewriteEngine On
[12] Fix | Delete
[13] Fix | Delete
## you can put here your pub/static folder path relative to web root
[14] Fix | Delete
RewriteBase [[relativeurl]]/pub/static/
[15] Fix | Delete
[16] Fix | Delete
# Remove signature of the static files that is used to overcome the browser cache
[17] Fix | Delete
RewriteRule ^version.+?/(.+)$ $1 [L]
[18] Fix | Delete
[19] Fix | Delete
RewriteCond %{REQUEST_FILENAME} !-f
[20] Fix | Delete
RewriteCond %{REQUEST_FILENAME} !-l
[21] Fix | Delete
[22] Fix | Delete
RewriteRule .* ../static.php?resource=$0 [L]
[23] Fix | Delete
# Detects if moxieplayer request with uri params and redirects to uri without params
[24] Fix | Delete
<Files moxieplayer.swf>
[25] Fix | Delete
RewriteCond %{QUERY_STRING} !^$
[26] Fix | Delete
RewriteRule ^(.*)$ %{REQUEST_URI}? [R=301,L]
[27] Fix | Delete
</Files>
[28] Fix | Delete
</IfModule>
[29] Fix | Delete
[30] Fix | Delete
############################################
[31] Fix | Delete
## setting MIME types
[32] Fix | Delete
[33] Fix | Delete
# JavaScript
[34] Fix | Delete
AddType application/javascript js jsonp
[35] Fix | Delete
AddType application/json json
[36] Fix | Delete
[37] Fix | Delete
# HTML
[38] Fix | Delete
[39] Fix | Delete
AddType text/html html
[40] Fix | Delete
[41] Fix | Delete
# CSS
[42] Fix | Delete
AddType text/css css
[43] Fix | Delete
[44] Fix | Delete
# Images and icons
[45] Fix | Delete
AddType image/x-icon ico
[46] Fix | Delete
AddType image/gif gif
[47] Fix | Delete
AddType image/png png
[48] Fix | Delete
AddType image/jpeg jpg
[49] Fix | Delete
AddType image/jpeg jpeg
[50] Fix | Delete
[51] Fix | Delete
# SVG
[52] Fix | Delete
AddType image/svg+xml svg
[53] Fix | Delete
[54] Fix | Delete
# Fonts
[55] Fix | Delete
AddType application/vnd.ms-fontobject eot
[56] Fix | Delete
AddType application/x-font-ttf ttf
[57] Fix | Delete
AddType application/x-font-otf otf
[58] Fix | Delete
AddType application/x-font-woff woff
[59] Fix | Delete
AddType application/font-woff2 woff2
[60] Fix | Delete
[61] Fix | Delete
# Flash
[62] Fix | Delete
AddType application/x-shockwave-flash swf
[63] Fix | Delete
[64] Fix | Delete
# Archives and exports
[65] Fix | Delete
AddType application/zip gzip
[66] Fix | Delete
AddType application/x-gzip gz gzip
[67] Fix | Delete
AddType application/x-bzip2 bz2
[68] Fix | Delete
AddType text/csv csv
[69] Fix | Delete
AddType application/xml xml
[70] Fix | Delete
[71] Fix | Delete
<IfModule mod_headers.c>
[72] Fix | Delete
[73] Fix | Delete
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$>
[74] Fix | Delete
Header append Cache-Control public
[75] Fix | Delete
</FilesMatch>
[76] Fix | Delete
[77] Fix | Delete
<FilesMatch .*\.(zip|gz|gzip|bz2|csv|xml)$>
[78] Fix | Delete
Header append Cache-Control no-store
[79] Fix | Delete
</FilesMatch>
[80] Fix | Delete
[81] Fix | Delete
</IfModule>
[82] Fix | Delete
[83] Fix | Delete
<IfModule mod_expires.c>
[84] Fix | Delete
[85] Fix | Delete
############################################
[86] Fix | Delete
## Add default Expires header
[87] Fix | Delete
## http://developer.yahoo.com/performance/rules.html#expires
[88] Fix | Delete
[89] Fix | Delete
ExpiresActive On
[90] Fix | Delete
[91] Fix | Delete
# Data
[92] Fix | Delete
<FilesMatch \.(zip|gz|gzip|bz2|csv|xml)$>
[93] Fix | Delete
ExpiresDefault "access plus 0 seconds"
[94] Fix | Delete
</FilesMatch>
[95] Fix | Delete
ExpiresByType text/xml "access plus 0 seconds"
[96] Fix | Delete
ExpiresByType text/csv "access plus 0 seconds"
[97] Fix | Delete
ExpiresByType application/json "access plus 0 seconds"
[98] Fix | Delete
ExpiresByType application/zip "access plus 0 seconds"
[99] Fix | Delete
ExpiresByType application/x-gzip "access plus 0 seconds"
[100] Fix | Delete
ExpiresByType application/x-bzip2 "access plus 0 seconds"
[101] Fix | Delete
[102] Fix | Delete
# CSS, JavaScript, html
[103] Fix | Delete
<FilesMatch \.(css|js|html|json)$>
[104] Fix | Delete
ExpiresDefault "access plus 1 year"
[105] Fix | Delete
</FilesMatch>
[106] Fix | Delete
ExpiresByType text/css "access plus 1 year"
[107] Fix | Delete
ExpiresByType text/html "access plus 1 year"
[108] Fix | Delete
ExpiresByType application/javascript "access plus 1 year"
[109] Fix | Delete
ExpiresByType application/json "access plus 1 year"
[110] Fix | Delete
[111] Fix | Delete
# Favicon, images, flash
[112] Fix | Delete
<FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg)$>
[113] Fix | Delete
ExpiresDefault "access plus 1 year"
[114] Fix | Delete
</FilesMatch>
[115] Fix | Delete
ExpiresByType image/gif "access plus 1 year"
[116] Fix | Delete
ExpiresByType image/png "access plus 1 year"
[117] Fix | Delete
ExpiresByType image/jpg "access plus 1 year"
[118] Fix | Delete
ExpiresByType image/jpeg "access plus 1 year"
[119] Fix | Delete
ExpiresByType image/svg+xml "access plus 1 year"
[120] Fix | Delete
[121] Fix | Delete
# Fonts
[122] Fix | Delete
<FilesMatch \.(eot|ttf|otf|svg|woff|woff2)$>
[123] Fix | Delete
ExpiresDefault "access plus 1 year"
[124] Fix | Delete
</FilesMatch>
[125] Fix | Delete
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
[126] Fix | Delete
ExpiresByType application/x-font-ttf "access plus 1 year"
[127] Fix | Delete
ExpiresByType application/x-font-otf "access plus 1 year"
[128] Fix | Delete
ExpiresByType application/x-font-woff "access plus 1 year"
[129] Fix | Delete
ExpiresByType application/font-woff2 "access plus 1 year"
[130] Fix | Delete
[131] Fix | Delete
</IfModule>
[132] Fix | Delete
[133] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function