Permalink
Browse files

Updated .htaccess file.

  • Loading branch information...
1 parent 75c0fe6 commit 0b565d9386e8203ede31a04304f88720e58aa762 @h3rald committed Aug 28, 2009
Showing with 15 additions and 19 deletions.
  1. +1 −0 Rakefile
  2. +1 −1 content/home.textile
  3. +3 −3 layouts/default.htm
  4. +10 −15 resources/.htaccess
View
@@ -1,3 +1,4 @@
+require 'rubygems'
require 'nanoc3/tasks'
Dir['tasks/**/*.rake'].sort.each { |rakefile| load rakefile}
View
@@ -5,7 +5,7 @@ filters_pre:
- redcloth
title: Home
type: page
-feed: ''
+feed: '/'
-----
<%
max_items = 5
View
@@ -7,8 +7,8 @@
<head>
<title><%= @item[:title] %> - H3RALD</title>
<% if @item[:feed] then %>
- <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.h3rald.com/<%= @item[:feed]%>rss/" />
- <link rel="alternate" type="application/atom+xml" title="ATOM" href="http://www.h3rald.com/<%= @item[:feed]%>atom/" />
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="<%= @item[:feed]%>rss/" />
+ <link rel="alternate" type="application/atom+xml" title="ATOM" href="<%= @item[:feed]%>atom/" />
<% end %>
<meta name="author" content="Fabio Cevasco" />
<meta name="copyright" content="Fabio Cevasco" />
@@ -19,7 +19,7 @@
<meta name="country" content="United States" />
<meta name="description" content="H3RALD - Fabio Cevasco's Web Site" />
<meta name="keywords" content="h3rald, fabio cevasco, ruby, rails technical writing, reviews, software, browsers, cakephp, genova, technical articles" />
- <link rel="shortcut icon" href="http://www.h3rald.com/favicon.ico" type="image/x-icon" />
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta content="44.388041;9.073248" name="ICBM" />
View
@@ -11,32 +11,24 @@ FileETag None
# Compress text files.
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
-# compress content with type html, text, js, and css
+ # compress content with type html, text, js, and css
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/x-javascript
<IfModule mod_headers.c>
-# properly handle requests coming from behind proxies
+ # properly handle requests coming from behind proxies
Header append Vary User-Agent
</IfModule>
-</IfModule>
-
-# Properly handle old browsers that do not support compression
-<IfModule mod_deflate.c>
+ # Properly handle old browsers that do not support compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
-# Explicitly exclude binary files from compression just in case
+ # Explicitly exclude binary files from compression just in case
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|swf|ico|zip)$ no-gzip
</IfModule>
# Custom errors
ErrorDocument 404 /404/index.html
ErrorDocument 500 /500/index.html
-# Force simple error message for requests for non-existent favicon.ico.
-<Files favicon.ico>
- ErrorDocument 404 "The requested file favicon.ico was not found."
-</Files>
-
# Set the default handler.
DirectoryIndex index.html
@@ -45,14 +37,17 @@ DirectoryIndex index.html
# Enable expirations.
ExpiresActive On
- # Cache all files for 1 hour after access (A).
- ExpiresDefault A3600
+ # Cache all files for 10 hour after access (A).
+ ExpiresDefault A36000
</IfModule>
-# Various rewrite rules.
+# Rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
+
+ RewriteRule ^rss$ /rss.xml
+ RewriteRule ^atom$ /atom.xml
RewriteRule ^$ /home/index.html [L,QSA]
</IfModule>

0 comments on commit 0b565d9

Please sign in to comment.