vendredi 26 octobre 2018

prerender.io not working with ember app in dployment

i have this ember app which i wanna render it's SEO for search engines. i am using prerender.io for this purpose, this is the website https://thesmilestylist.ca . I am using apache midllware used apache middlware link. also my .htaccess file is

Header set test1 "test1"
<IfModule mod_headers.c>
Header set test2 "test2"
RequestHeader set X-Prerender-Token "xxxxxxxxxxxx"
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
Header set test3 "test3"
RewriteCond %{HTTP_HOST} ^www\.thesmilestylist\.ca [NC]
RewriteRule ^(.*)$ https://thesmilestylist.ca/$1 [L,R=301]

<IfModule mod_proxy_http.c>
Header set test4 "test4"
RewriteCond %{HTTP_USER_AGENT} googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator [NC,OR]
RewriteCond %{QUERY_STRING} _escaped_fragment_

# Only proxy the request to Prerender if its a request for HTML
RewriteRule ^(?!.*?(\.js|\.css|\.xml|\.less|\.png|\.jpg|\.jpeg|\.gif|\.pdf|\.doc|\.txt|\.ico|\.rss|\.zip|\.mp3|\.rar|\.exe|\.wmv|\.doc|\.avi|\.ppt|\.mpg|\.mpeg|\.tif|\.wav|\.mov|\.psd|\.ai|\.xls|\.mp4|\.m4a|\.swf|\.dat|\.dmg|\.iso|\.flv|\.m4v|\.torrent|\.ttf|\.woff))(.*) http://service.prerender.io/https://thesmilestylist.ca/$2 [P,L]
</IfModule>
Header set test5 "test5"
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]

</IfModule>

the search engines bots fetching correctly the website and it appears on my prerender.io crawl states but search engines still can't see the content of the pages after rendered. and my ember index.html is as follows

<!-- Use HTML5 doctype --> <!DOCTYPE html> <!-- Set locale language -->
<html lang="en-ca">
   <head>
      <!-- Plug favicon -->
      <link rel="icon" href="/inc/favicon.png" type="image/png" />
      <meta name="fragment" content="!"> 
      <!-- META[ -->
            <title>Oakville Cosmetic Dentistry - The Smile Stylist</title>
      <meta name="description" content="Call Now! (647) 478-9055 – The Smile Stylist cosmetic dentistry clinic, located in Oakville, ON specializes in porcelain veneers, dental implants & smile makeovers. Dr. Kaloti is renowned for crafting unforgettable smiles." />
      <meta name="keywords" content="full mouth reconstruction dentists, dentistry, porcelain veneers, dental clinics, oakville, toronto, gaps between the teeth, teeth whitening oakville, teeth whitening dental clinics oakville, cosmetic dental clinics, cosmetic dental clinics oakville, cosmetic dental clinics mississauga" />
          
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <!-- ]META --> <!--ASSETS[-->
      <link rel="stylesheet" href="/assets/vendor.css">
      <link rel="stylesheet" href="/assets/tsse.css">
      <!--]ASSETS--> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter48714452 = new Ya.Metrika({ id:48714452, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script>
      <noscript>
         <div><img src="https://mc.yandex.ru/watch/48714452" style="position:absolute; left:-9999px;" alt="" /></div>
      </noscript>
      <!-- /Yandex.Metrika counter --> <!--Google Analytics--> <script> (function ( i, s, o, g, r, a, m ) { i['GoogleAnalyticsObject'] = r i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date() a = s.createElement(o), m = s.getElementsByTagName(o)[0] a.async = 1 a.src = g m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga') ga('create', 'UA-115285690-1', 'auto') ga('send', 'pageview') </script>
      <meta name="tsse/config/environment" content="%7B%22modulePrefix%22%3A%22tsse%22%2C%22environment%22%3A%22development%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22tsse%22%2C%22version%22%3A%220.0.0%22%7D%2C%22exportApplicationGlobal%22%3Atrue%7D" />
      <!-- EMBER_CLI_FASTBOOT_TITLE --><!-- EMBER_CLI_FASTBOOT_HEAD -->
   </head>
   <body class="body">
      <!-- EMBER_CLI_FASTBOOT_BODY --> <!--JQuERY--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script src="/assets/vendor.js"></script> <script src="/assets/tsse.js"></script>
   </body>
</html>



Aucun commentaire:

Enregistrer un commentaire