I've setup a basic generated sitemap following all the basic steps of:
1) creating a file method in sitemaps_controller.php hat generates the
sitemap
2) making sure requestHandler is loaded
3) added parseExtensions to the router config
4) created a /layouts/xml/default.ctp
5) created a /views/sitemaps/xml/file.ctp
and my route looks like this:
Router::connect('/sitemap', array('controller' => 'sitemaps',
'action'=>'file', 'ext'=>'xml'));
Which as far as i can tell should be fine. But for some reason the
following URL is not working:
http://example.com/sitemap.xml
While these two URLs do work (so the basic setup is fine)
http://example.com/sitemap/.xml
http://example.com/sitemaps/file.xml
Can anybody tell where my routing is wrong?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en