brih Posted July 20, 2018 Share Posted July 20, 2018 (edited) Hej alle, Fandt netop dette danske forum. Jeg kører en prestashop 1.5.6.2 version igennem nogle år nu, og er netop skiftet fra http til https. Jeg har forced ssl på all sider, serveren redurecter med 301 osv. men, jeg kan stadig se at jeg linker til nogle http sider gennem block language. Disse links er ikke http, hvilket muligvis giver nogle af de problemer som har oplever ved migreringen fra http til https. Er der nogen som ved hvor disse links til blocklanguage kan omkrives til https og hvordan? Håber på hjælp. På forhpnd tak. Mvh. Brian Edited July 29, 2018 by brih (see edit history) Link to comment Share on other sites More sharing options...
Prestafan1234 Posted July 20, 2018 Share Posted July 20, 2018 Må vi se din blocklanguage.tpl fil? Findes under dit theme og enten direkte i denne mappe eller modules (kan ikke lige huske struktur) Link to comment Share on other sites More sharing options...
brih Posted July 21, 2018 Author Share Posted July 21, 2018 On 7/20/2018 at 8:52 PM, Prestafan1234 said: Må vi se din blocklanguage.tpl fil? Findes under dit theme og enten direkte i denne mappe eller modules (kan ikke lige huske struktur) Expand Hej og tusind tak for din reaktion på dette - hermed koden nedenfor i file. Jeg går ud fra at det er i det som hedder $link der er http i stedet for https? Jeg håber at det er her jeg skal finde fejlen, da vores google listing mere eller mindre er fjernet efter https migrering, ikke engang vores index side kommer på ved søgning, og jeg tænker det er i blandingen af http og https der kan opstå forvirring, idet vi jo stadig har links tilbage til den "gamle" http side. Mvh. Brian {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- Block languages module --> {if count($languages) > 1} <section id="languages_block_top" class="header-box header-button"> <div id="countries_2"> {* @todo fix display current languages, removing the first foreach loop *} {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <p class="selected_language icon_wrapp"> <span>{l s='Language' mod='blocklanguages'}</span> <strong>{$language.iso_code}</strong> <span>{$language.name}</span> <i class="arrow_header_top icon-chevron-sign-down"></i> </p> {/if} {/foreach} <ul id="first-languages" class="countries_ul list_header"> {foreach from=$languages key=k item=language name="languages"} <li {if $language.iso_code == $lang_iso}class="selected"{/if}> {if $language.iso_code != $lang_iso} {assign var=indice_lang value=$language.id_lang} {if isset($lang_rewrite_urls.$indice_lang)} <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}"> {/if} {/if} <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="26" height="16" /><span>{$language.name}</span> {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul> </div> </section> <script type="text/javascript"> $(document).ready(function(){ $('#countries_2 .countries_ul li span, #countries_2 p > span').each(function() { var h = $(this).html(); var index = h.indexOf(' '); if(index == -1) { index = h.length; } $(this).html('<span class="firstWord">'+ h.substring(index, h.length) + '</span>' + h.substring(0, index)); }); }); </script> {/if} <!-- /Block languages module --> Link to comment Share on other sites More sharing options...
brih Posted July 21, 2018 Author Share Posted July 21, 2018 Jeg faldte tilfældigvis over en løsning som jeg prøvede - det virker https://github.com/PrestaShop/PrestaShop/commit/49977b74a2ecd6a73aed606329ddde3ddd3e78b4 I filen links.php links rettede jeg de to parametre fra false til null i linjerne 504 0g 508 og nu er mine sproglinks https - jeg havde eller ikke haft held til at finde en løsning indtil videre så alt ser fint ud nu Jeg håber det hjælper. Link to comment Share on other sites More sharing options...
Prestafan1234 Posted July 21, 2018 Share Posted July 21, 2018 Super du har fået det til at virke. Husk at redirecte fra http til https i .htaccess (brug google til at finde syntax). Husk også at oprette ny side i Google Seach Console og upload nyt sitmap. Det vil hjælpe Google til at re-indeksere. 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