Joomla.it Forum
Componenti per Joomla! => SEO => : amok360 26 Oct 2010, 22:50:19
-
siccome .. come gia detto in un precedente post.. ho nel web diversi link (causa rinominazione) con errore 404
ho utilizzato il file htaccess come suggerito da taolo per fare redirect dei piu importanti e visitati..
per i rimanenti.. faccio bene a inserire tale codice nel file error.php dentro la cartella template/system per fare redirect a tutti i restanti errori 404?
non mi compromette nulla a livello di seo generale?
12 // no direct access
13 defined( '_JEXEC' ) or die( 'Restricted access' );
14 header ("Location: /"); exit();
15 ?>
16 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
17 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo 18 $this->direction; ?>">
19 <head>
20 <title><?php echo $this->error->code ?> - <?php echo $this->title; ?></title>
21 <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/error.css" type="text/css" />
22 <meta HTTP-EQUIV="REFRESH" content="0; url=/index.php">
23 </head>
-
aggiungo..
le righe che ho inserito sono le 14 e 21..
quanto ci mette una pagina con redirect, ma senza 301.. a perdere ranking?