蛋糕PHP根目录文件访问

发布于 2025-01-19 05:14:31 字数 105 浏览 4 评论 0原文

你好社区,我想在 root/public_html 目录中创建自定义站点地图,并且我想查看为 raalic.us/sitemap.xml 那么我如何访问根目录中的任何文件或蛋糕PHP中的特定文件?

Hello community I want to Create custom sitemap in root/public_html directory and i want to view as raalic.us/sitemap.xml
So how can i access root directory any file or specific file in cake php?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骄傲 2025-01-26 05:14:31
  • 您已经将基于CakePHP的Web应用程序设置为 root/public_html
  • cakephp具有自己的根目录,它被称为 webroot
  • 目录
  • .htaccess Retirects所有HTTP请求都包含公开可用的 文件(CSS,JS,IMG,..)
  • 您可以将SiteMap.xml放入其中,

因此XML文件的正确路径是:root/prufer_html/webroot/stitemap.xml

  • You have set the cakephp based web app to root/public_html
  • CakePHP has its own root directory and it is called webroot
  • .htaccess redirects all http requests to that directory
  • it contains publicly available files (css, js, img, ..)
  • you can put your sitemap.xml in it

so the correct path to the xml file is: root/public_html/webroot/sitemap.xml

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文