1
0
mirror of https://github.com/meineerde/holgerjust.de.git synced 2026-02-21 19:12:05 +00:00

Add rewrite rule to make favicon directly available at /favicon.ico

This commit is contained in:
Holger Just 2016-05-18 14:55:49 +02:00
parent fdce86394e
commit ad8220249d

View File

@ -52,6 +52,8 @@ RewriteRule .* https://<%= URI.parse(casper[:blog][:url]).host %>%{REQUEST_URI}
RewriteCond %{HTTP_HOST} !=<%= URI.parse(casper[:blog][:url]).host %> [NC]
RewriteRule .* https://<%= URI.parse(casper[:blog][:url]).host %>%{REQUEST_URI} [R=301,L,QSA]
RewriteRule ^favicon.ico$ /images/favicon.ico
# Use gziped content if possible
RewriteCond %{HTTP:Accept-Encoding} \b(x-)?gzip\b
RewriteCond %{REQUEST_FILENAME}\.gz -s