I have controller action /posts/sitemap where the sitemap is generated. Now i want to point http//yoursite.com/sitemap.xml to /posts/sitemap/
Is there any way I can changes routes.php to fix this.
I appreciate any help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use apaches rewrite engine. Add this to your
.htaccessEDIT
Ok, after your edit I must admit, that my answer doesn’t really belong to your question. I don’t have much experience with Cake, but maybe adding this to your
routes.phpwill help: