File .htaccess su Register.it

August 10th, 2009

Capita sempre più spesso di utlizzare la tecnica denominata URL Rewriting che permette la riscrittura di URL ‘SEO friendly’. Affinchè questa tecnica possa funzionare, come ben sappiamo, è necessario che nella root del nostro sito sia presente il file .htaccess.
Recentemente ho avuto modo di lavorare per un cliente il cui sito era ospitato su un server di register.it; con grande sorpresa ho scoperto però che non è sufficiente caricare via FTP il file in questione perchè l’URL Rewriting abbia effetto.
Di seguito vi illustro la procedura che mi è sembrata più corretta.
Read the rest of this entry »

Clearing floats with css

February 21st, 2009

I was reading an article about browser inconsistencies and in particular about what the author calls clearing floats – “when a container or wrapper div doesn’t correctly wrap around the containing divs”.
Read the rest of this entry »

A custom 404 page

February 17th, 2009

Let’s see how to create a custom 404 page in two simple steps.

  1. You need to have access to your webserver and upload to its root the .htaccess file. This is a simple file which tells the server to show a default page in case the one we are trying to access cannot be found. The file looks like this:
    ErrorDocument 404 http://www.yoursite.com/404.html
    
  2. Read the rest of this entry »

The Canonical Tag

February 16th, 2009

Matt Cutts explains the new ‘canonical tag’ in a video.

This tag (whose syntax is:

<link rel=”canonical” value=”http://example.com/page.html”/>

) helps webmaster to clean up duplicate urls on sites and is very useful when working with CMS such as wordpress for instance.
Read the rest of this entry »

The SWFObject 2.1 in a nutshell

February 12th, 2009

We all know the SWFObject and how it works; let’s see how to implement it in our webpages in just few seconds.
This syntax only applies to the SWFObject v. 2.1 available at googlecode.
Read the rest of this entry »

My reset.css

February 11th, 2009

This is my version of the standard reset.css Eric Meyer posted some time ago in his website. Just copy it and paste it at the beginning of your css. I’ll be updating it accordingly. This little piece of code should reduce browser inconsistencies. Read the rest of this entry »