How can I add sitemap.xml to angularJS site? How can I add sitemap.xml to angularJS site? angularjs angularjs

How can I add sitemap.xml to angularJS site?


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


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.


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