• 12-12-2021, 20:25:32
    #1
    sitemde facebook app yönlendirme url ile alakalı bir hata var.
    Hatayı çözebilir misiniz.



    whatsapp ile iletişim kurunuz.
    05336140654
  • 12-12-2021, 22:59:51
    #2
    Halledildi.
  • 13-12-2021, 00:46:56
    #3
    Çözülmesine sevindim. Bu ve benzer sorunları yaşayan arkadaşlar alttaki kodu sitenin .htaccess dosyasına ekleyip tekrar denesinler. Muhtemelen SSL kaynaklı olan sorun çözümlenmiş olacaktır.



    
    
    RewriteEngine On
    
    RewriteCond %{HTTPS} off
    
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php?/$1 [L]
    Ayrıca facebook bağlama işleminden sonra url'in https://site.com/#_=_ şeklinde olması gibi hatalar ile karşılaşırsanız, alttaki kodu, header dosyasında meta etiketlerinin üstüne ekleyin.



    
    
    
    
    <script type="text/javascript">
        if (window.location.hash && window.location.hash == '#_=_') {
            if (window.history && history.pushState) {
                window.history.pushState("", document.title, window.location.pathname);
            } else {
                // Prevent scrolling by storing the page's current scroll offset
                var scroll = {
                    top: document.body.scrollTop,
                    left: document.body.scrollLeft
                };
                window.location.hash = '';
                // Restore the scroll offset, should be flicker free
                document.body.scrollTop = scroll.top;
                document.body.scrollLeft = scroll.left;
            }
        }
    </script>