S
S
Shurik2022-03-04 01:49:15
Vue.js
Shurik, 2022-03-04 01:49:15

How to give a static main page Vue for Yandex robot?

Hello. IMHO, looking ahead, I inform you that I know about the existence of SSR and Nuxt js, but I would like to get by with a little bloodshed and give Yandex statics only the main page to make it more SEO-friendly.
Excerpt from Yandex help:


You can tell the crawler about the HTML version of a page with:
Meta Tag
Add the meta name="fragment" content="!" meta tag to your AJAX page code. As a result, the HTML version of this page should be available at the address with the addition of the ?_escaped_fragment_= parameter (the parameter value is empty). For example: www.example.com/?_escaped_fragment_= .

Actually a question. Let's say I created an HTML version of the page I need. How can I give it to site.ru?_escaped_fragment_= ? Is this done at the server level? In general, how to do it more competently in the case of Vue?
Web server - Nginx.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question