1
Joomla! 3 / joolma 3.5
« il: 25 Mar 2016, 18:43:52 »
Salve ho alcune parti del sito che mi danno pagina bianca..come posso risolvere o almeno capire il tipo di errore?(non sò se è stato dopo l'aggiornamento 3.5)
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
-joomla 3.4
Salve ragazzi..peadesso sono alle prese con il miglioramento del mio sito..almeno ci provo. avevo molte pagine duplicate e tramite il robots.txt ho cerco di toglierle..
Disallow: /*?
erano tutte quelle pagine che avevano il punto internegativo nella url..
ho voluto anche togliere tutte quelle pagine che finivano con .feed
Disallow: /*.feed$
e avevo delle pagine che iniziavano con index.php.php
Disallow: /index.php.php/*
Ora la media era di 300 pagine pagine duplicate..con la modifica al robots.txt erano 21..ieri sono saliti a 550..come faccio a capire se la strada intrapresa è quella giusta?
Mi conviene comprare qualche componente a pagamento?
<?php
// This function will call the API to get best keyword for current URL.
// Then it writes the list of best keywords in a HTML list
function DisplayTopKeywords($url = "")
{
// Do not spend more than 1 second fetching the data
@ini_set("default_socket_timeout", $timeout = 1);
// Get the Keywords data
$url = empty($url) ? "http://". $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] : $url;
$api = "http://www.computeregames.it/piwik/?module=API&method=Referrers.getKeywordsForPageUrl&format=php&filter_limit=10&token_auth=4b82bc0d9861ce0c0bef309df3e6b9c9&date=previous1&period=week&idSite=1&url=" . urlencode($url);
$keywords = @unserialize(file_get_contents($api));
if($keywords === false || isset($keywords["result"])) {
// DEBUG ONLY: uncomment for troubleshooting an empty output (the URL output reveals the token_auth)
// echo "Error while fetching the <a href='$api'>Top Keywords from Piwik</a>";
return;
}
// Display the list in HTML
$url = htmlspecialchars($url, ENT_QUOTES);
$output = "<h2>Top Keywords for <a href='$url'>$url</a></h2><ul>";
foreach($keywords as $keyword) {
$output .= "<li>". $keyword . "</li>";
}
if(empty($keywords)) { $output .= "Nothing yet..."; }
$output .= "</ul>";
echo $output;
}
DisplayTopKeywords();
Notes: You can for example edit the code to to make the Top search keywords link to your Website search result pages.
![]() |
|