Permalink
Browse files

.htaccess ve 404 hata sayfası

  • Loading branch information...
vigo committed Dec 26, 2011
1 parent befe29d commit 124f1d138185bf091c1aa22602ce8883bd78145b
Showing with 32 additions and 0 deletions.
  1. +23 −0 source/.htaccess
  2. +9 −0 source/404.html
View
@@ -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
View
@@ -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.