Answer the question
In order to leave comments, you need to log in
Site indexing when using AngularJS?
Hello. I am developing a website and the client side is powered by AngularJS. Accordingly, all content, links, etc. appear on the page using JS.
How to deal with search engines in this case? If I create a sitemap file that contains links to special pages where there will be only content (in html), will this work?
In other words: the entire site is opened via index.html, the data is taken in JSON format from the API. And for search engines, I will make pages, for example, news.php - where all the news will be wrapped in HTML according to all SEO rules (but without styles, JS, etc.) and I will indicate these pages in the sitemap. Will the bot find them? It is legal?
Answer the question
In order to leave comments, you need to log in
If your site is built entirely on Angular, then you need to render pages for the web crawler.
As they said, read Google's recommendations and you can look towards SaaS https://prerender.io/ (there is also offline)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question