我的 css 文件未加载。
我刚刚安装了apache2 < php 在 ubuntu 。 (已安装Mysql服务器。)
我已经从官方网站下载了新鲜的 php 但是当我尝试访问它时, CSS 文件未加载。
这是屏幕截图。 / p>
解决方案
尝试删除这些文件:
/.htaccess /app/.htaccess /app/webroot/.htaccess并取消注释这行在app / config / core.php [69]
配置:: write('App.baseUrl',env 'SCRIPT_NAME'));编辑:
:据我所知,这是做的应用程序的基本url设置为index.php( env()从可用的源获取环境变量)baseUrl用于重写网址而不使用mod_rewitte,其中 pathinfo 。
My css file is not loading.
I have just installed apache2 with php on ubuntu. (Mysql server already installed.)
I have placed fresh download of cake php from official site. But when I am trying to access it, CSS file is not loaded.
Here is the screen shot.
解决方案Try deleting these files:
/.htaccess /app/.htaccess /app/webroot/.htaccessand uncommenting this line on app/config/core.php [69]
Configure::write('App.baseUrl', env('SCRIPT_NAME'));EDIT:
to answer your comment: as far as I know, what this does is set the base url of the app to index.php (env() Gets an environment variable from available sources) That baseUrl is used to rewrite the urls without using mod_rewitte, with pathinfo.
更多推荐
apache2上的蛋糕php css加载问题
发布评论