How can I add sitemap.xml to angularJS site?
Asked Answered
R

5

10

I added sitemap.xml in app folder but how can I make it public so that the google webmaster tool can get it?

Thanks

Replevy answered 11/12, 2013 at 15:34 Comment(0)
W
1

From Google's Build and Submit a Sitemap Documentation:

There are two different ways to make your sitemap available to Google:

Submit it to Google using the Search Console Sitemaps tool

OR

Insert the following line anywhere in your robots.txt file, specifying the path to your sitemap: Sitemap: http://example.com/sitemap_location.xml

Weinberg answered 14/5, 2018 at 20:2 Comment(0)
T
0

you can make it visible by storing it outside of your angular application. so simply put it into your main directory and link to it in webmaster tools: http://yourDomain.com/sitemap.xml

the yearofmoo article is helpful but in the end they also recommend using a sitemap along with their technique. In your sitemap you should use full url paths to access a state.

Temptress answered 12/1, 2016 at 22:22 Comment(0)
B
0

Put your sitemap.xml file in the public folder.

Brendanbrenden answered 12/7, 2017 at 12:0 Comment(0)
E
0

Try To Put the Sitemap.xml in the Root directory of your website or WebApp. just like http://example.com/sitemap.xml . In your case Disable the Angular.js Routing

Ehrenburg answered 22/9, 2017 at 9:41 Comment(0)
C
0

First, you need to generate sitemap online and download that Sitemap.XML file and give your developer. The developer set priority according to your website page and according to priority your sitemap URL crawl by Google Bot.

Consanguineous answered 27/11, 2018 at 9:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.