Browse Source

Fixed #85: Allow custom favicon

Also custom apple-touch-icon
master
Kroc Camen 9 years ago
parent
commit
b0912d79af
5 changed files with 12 additions and 2 deletions
  1. +2
    -2
      .gitignore
  2. +10
    -0
      .htaccess
  3. +0
    -0
      apple-touch-icon.default.png
  4. BIN
      apple-touch-icon.png
  5. +0
    -0
      favicon.default.ico

+ 2
- 2
.gitignore View File

@@ -3,8 +3,8 @@

# server
!.htaccess
!apple-touch-icon*
!favicon.ico
!apple-touch-icon.default.png
!favicon.default.ico
!robots.txt

# code

+ 10
- 0
.htaccess View File

@@ -10,6 +10,16 @@ Options -MultiViews -Indexes
# <orangejuiceliberationfront.com/http-auth-with-php-in-cgi-mode-e-g-on-dreamhost/>
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# custom favicon?
RewriteCond %{DOCUMENT_ROOT}/favicon\.ico !-f [NC]
RewriteRule ^favicon\.ico$ /favicon.default.ico [L]

# custom apple-touch-icon?
RewriteCond %{DOCUMENT_ROOT}/apple-touch-icon\.png !-f [NC]
RewriteRule ^apple-touch-icon\.png$ /apple-touch-icon.default.png [L]
RewriteCond %{DOCUMENT_ROOT}/apple-touch-icon-precomposed\.png !-f [NC]
RewriteRule ^apple-touch-icon-precomposed\.png$ /apple-touch-icon.default.png [L]

# don’t allow any access to /users (this is accessed purely from the PHP)
RewriteRule ^users/.*$ - [NC,F]


apple-touch-icon-precomposed.png → apple-touch-icon.default.png View File


BIN
apple-touch-icon.png View File

Before After
Width: 114  |  Height: 114  |  Size: 566B

favicon.ico → favicon.default.ico View File


Loading…
Cancel
Save