Seeeans Posted May 2, 2011 Share Posted May 2, 2011 i setup all the SEO featuresonly14you.com is seen as properly working but could not connect to the admin pageany step during the SEO work may cause this problem? or any other problemWhat i did is http://www.presto-changeo.com/en/content/6-prestashopseotipsfrom above link RewriteCond %{HTTP_HOST} ^www.your_site.com$ [NC] RewriteRule ^(.*)$ http://your_site.com/$1 [R=301,L] these to the .htaccess file static public function completeMetaTags($metaTags, $defaultValue) { global $cookie; $no_duplication = ""; if (self::getValue('p')) $no_duplication .= ($no_duplication != ""?" #":"#").self::getValue('p'); if ($no_duplication != "") $no_duplication = " (".$no_duplication.")"; if ($metaTags['meta_title'] == NULL) $metaTags['meta_title'] = Configuration::get('PS_SHOP_NAME').' - '.$defaultValue; $metaTags['meta_title'] .= $no_duplication; if ($metaTags['meta_description'] == NULL) $metaTags['meta_description'] = (Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) ? Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) : ''); $metaTags['meta_description'] .= $no_duplication; if ($metaTags['meta_keywords'] == NULL) $metaTags['meta_keywords'] = Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) ? Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) : ''; return $metaTags; } Open /classes/Tools.php and replace the function getHomeMetaTags (around line #490) with the function below. static public function getHomeMetaTags($id_lang) { global $cookie, $page_name; /* Metas-tags */ $metas = Meta::getMetaByPage($page_name, $id_lang); $ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? Configuration::get('PS_SHOP_NAME').' - '.$metas['title'] : Configuration::get('PS_SHOP_NAME'); $ret['meta_description'] = (isset($metas['description']) AND $metas['description']) ? $metas['description'] : ''; $ret['meta_keywords'] = (isset($metas['keywords']) AND $metas['keywords']) ? $metas['keywords'] : ''; $no_duplication = ""; if (self::getValue('p')) $no_duplication .= ($no_duplication != ""?" #":"#").self::getValue('p'); if ($no_duplication != "") { $ret['meta_title'] .= " (".$no_duplication.")"; $ret['meta_description'] .= " (".$no_duplication.")"; } return $ret; } these to the tools.tpl file Replace the current <title>...</title> tag in /themes/prestashop/header.tpl line #4 with the one below: <title>{$meta_title|escape:'htmlall':'UTF-8'} {foreach from=$languages item=language}{if $language.iso_code == $lang_iso} ({$language.name}){/if}{/foreach} </title> Replace the current <meta name="description"> tag in /themes/prestashop/header.tpl line #6 with the one below: <meta name="description" content="{$meta_description|escape:htmlall:'UTF-8'}{foreach from=$languages item=language}{if $language.iso_code == $lang_iso} ({$language.name}){/if}{/foreach}" /> these to the header.tpl filelastly is there any other way to access admin page?what cause problem while i try to access admin page?//additional infowhen i try to access to the admin page, it shows white black page with '1' in the source of pagemore.. i think i did robot thing.. is this the reason why it happened? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now