cakephp css和图像问题在localhost [英] cakephp css and images problem at localhost
问题描述
我已从根服务器下载了一个项目。它的行为很精细。但是当我在xampp环境中的localhost上运行项目时,没有找到任何css或任何图像。如何解决这个问题?
I've downloaded a project from a root server. It acts there very fine. But when i run the project in the localhost on xampp environment, didn't find the any css nor any images. How can i solve this problem?
推荐答案
您还应该验证根目录中的.htaccess文件的内容, / app
和 / app / webroot
。根据您是否从子目录(例如 http://domain.com/somesubdirectory/ )提供CakePHP,您可能必须向 / app / webroot /
中的.htaccess文件添加 RewriteBase
指令。详细信息此处。
You should also verify the contents of your .htaccess files in the root install directory, in /app
and /app/webroot
. Depending if you are serving CakePHP from a subdirectory (like http://domain.com/somesubdirectory/) you might have to add a RewriteBase
directive to your .htaccess file in /app/webroot/
. Details here.
这篇关于cakephp css和图像问题在localhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!