all repos — h3rald @ 0b565d9386e8203ede31a04304f88720e58aa762

The sources of https://h3rald.com

Updated .htaccess file.
h3rald h3rald@h3rald.com
Fri, 28 Aug 2009 21:28:55 +0200
commit

0b565d9386e8203ede31a04304f88720e58aa762

parent

75c0fe68d040af1c8027baa660bb9fecff3bb70b

4 files changed, 15 insertions(+), 19 deletions(-)

jump to
M RakefileRakefile

@@ -1,3 +1,4 @@

+require 'rubygems' require 'nanoc3/tasks' Dir['tasks/**/*.rake'].sort.each { |rakefile| load rakefile}
M content/home.textilecontent/home.textile

@@ -5,7 +5,7 @@ - erb

- redcloth title: Home type: page -feed: '' +feed: '/' ----- <% max_items = 5
M layouts/default.htmlayouts/default.htm

@@ -7,8 +7,8 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<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="target_country" content="en-us" />

<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" />
M resources/.htaccessresources/.htaccess

@@ -11,20 +11,17 @@

# 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>

@@ -32,11 +29,6 @@ # 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 @@ <IfModule mod_expires.c>

# 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>