Manish Tiwari
Manish Tiwari

Reputation: 1866

How to call sitemap.xml in codeigniter application

i have added sitemap.xml file to my codeigniter project.

And i call it on my localhost like that : http://localhost/demo/sitemap.xml it runs without any issue.

But when i run it on live server http://example.com/demo/sitemap.xml it says 404 page not found.

What is issue ?

Upvotes: 0

Views: 1651

Answers (1)

Raj Jagani
Raj Jagani

Reputation: 758

you need to add below things in your config/routes.php file

$route['sitemap\.xml'] = 'demo/sitemap'; // your navigation path i.e. your controller_name/function_name

Upvotes: 1

Related Questions