Last active
October 23, 2021 20:19
-
-
Save uzbekdev1/645d048babef166a2519f59bd5f5fd48 to your computer and use it in GitHub Desktop.
Font awesome issue in the htaccess file (only FX browser)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------- | |
# HTACCESS FILE | |
# ------------------------- | |
AddDefaultCharset utf-8 | |
Options +FollowSymLinks | |
# RESTRICTIONS | |
# Disallow direct access to this file and any log / cache file | |
# Prevent directory browsing | |
# -------------------------------------------------------------- | |
<Files .htaccess> | |
order allow,deny | |
deny from all | |
</Files> | |
<FilesMatch "\.(log|cache)"> | |
order deny,allow | |
deny from all | |
</FilesMatch> | |
Options All -Indexes | |
# REWRITE RULES | |
# If you get a 404 you may need to uncomment the rewritebase rule and | |
# add your base path, this will be determined by your install location | |
# ---------------------------------------------------------------------------------- | |
RewriteEngine On | |
#RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) | |
RewriteRule ^([^?]*) index.php?_msw_=$1 [L,QSA] | |
# COMPRESSION | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE text/javascript | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE image/x-icon | |
AddOutputFilterByType DEFLATE image/svg+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-truetype | |
AddOutputFilterByType DEFLATE application/x-font-ttf | |
AddOutputFilterByType DEFLATE application/x-font-otf | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE font/ttf | |
AddOutputFilterByType DEFLATE font/otf | |
AddOutputFilterByType DEFLATE font/opentype | |
# For older browsers that can`t handle compression | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> | |
# EXPIRES CACHING | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access plus 1 year" | |
ExpiresByType image/jpeg "access plus 1 year" | |
ExpiresByType image/gif "access plus 1 year" | |
ExpiresByType image/png "access plus 1 year" | |
ExpiresByType text/css "access plus 1 month" | |
ExpiresByType application/pdf "access plus 1 month" | |
ExpiresByType text/x-javascript "access plus 1 month" | |
ExpiresByType application/javascript "access 1 month" | |
ExpiresByType application/x-shockwave-flash "access plus 1 month" | |
ExpiresByType image/x-icon "access plus 1 year" | |
ExpiresDefault "access plus 2 days" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment