Skip to content

Commit

Permalink
.htaccess ve 404 hata sayfası
Browse files Browse the repository at this point in the history
  • Loading branch information
vigo committed Dec 26, 2011
1 parent befe29d commit 124f1d1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
23 changes: 23 additions & 0 deletions source/.htaccess
@@ -0,0 +1,23 @@
#### CACHING ####
ExpiresActive On
ExpiresDefault A3600

# 1 MONTH
<FilesMatch "\.(ico|gif|jpe?g|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
ExpiresDefault A2419200
Header append Cache-Control "public"
</FilesMatch>

# 3 DAYS
<FilesMatch "\.(xml|txt|html|htm|js|css)$">
ExpiresDefault A259200
Header append Cache-Control "private, must-revalidate"
</FilesMatch>

# NEVER CACHE
# <FilesMatch "\.(php|cgi|pl)$">
# ExpiresDefault A0
# Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
# Header set Pragma "no-cache"
# </FilesMatch>
ErrorDocument 404 /404.html
9 changes: 9 additions & 0 deletions source/404.html
@@ -0,0 +1,9 @@
---
layout: page
title: "Sayfa bulunamadı: Hata kodu 404"
comments: false
sharing: false
footer: false
sidebar: false
---
Sayfa bulunamadı

0 comments on commit 124f1d1

Please sign in to comment.