In codeigniter project, I am using page slugs for SEO
, but now I want to generate sitemap dynamically. When Url get changed from admin then sitemap links should be updated.
I have implemented static sitemap temporarily using "online sitemap generator portals". But now I have to implement dynamic sitemap according to current url structures.
I google it most but they are fetching urls from database & generating "sitemap.xml". But in my case, urls changing once page slug is changed from back-end. So I am unable to go through database.
I tried this solution: Sitemap generation with Codeigniter
But in my case, once page slug gets changed then sitemap is not affecting according to above code snippet.
please suggest me the solution??