Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

site map generators cant identify angular redirected URLs

First of all i am angular noob. I have a blog(http://naren.me) hosted in appengine and am using angularjs.

When i search "naren.me is python" in google, I see search result showing "Loding..." text, the text which is supposed to be displayed before ng-view loads.

enter image description here

When i generate sitemap for my site i don't see any angular redirected URLs at all. Am i missing something ? Here is the angular app.js file of my site. https://github.com/Narengowda/naren.me/blob/master/static/angularBlogFiles/js/app.js

like image 316
naren Avatar asked Mar 20 '26 06:03

naren


1 Answers

Google bot and other cralwers can't execute javascript, they will request your page and just index whatever is there in the html. You can read more about it here Google's Crawler Guidelines

What you have to do is provide to Google and other search engines a static version of your website

You have some alternatives to solve this problem.

Paid service

This is the easiest way to generate and serve google with a static version of your website, here are some providers prerender.io, Brombone, seo4ajax, you can google for more providers.

Some of them have a free plan that would fit your needs better.

Make your own service to generate static web pages

You can build your own solution to generate your static pages learn here.

like image 51
Chiconato Avatar answered Mar 22 '26 04:03

Chiconato



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!