CakePHP的CSS文件不加载 [英] Cakephp CSS file not loading
问题描述
我有一个网站工作的一台服务器上。我改变托管,所以我创建了一个网站的另一台服务器进行测试的。
I have a website working on one server. I am changing hosting, so I created a website on another server for testing.
一切似乎除了CSS是工作,。它没有加载在所有。我有777对临时文件夹中并启用modre_write。
Everything seems to be working, except CSS. It is not loading at all. I have 777 for tmp folder and mod re_write enabled.
我可以看到所有的缓存文件,除了CSS。
I can see all cached files except for CSS.
请指教和帮助
这是我在WWW .htacess文件
This is my .htacess file in www
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
这是我里面的应用程序的第二htaccess的
This is my second htaccess inside app
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
这是我里面的第三根目录htaccess的
This is my third htaccess inside webroot
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
和网址是23.236.49.24
and the url is 23.236.49.24
推荐答案
加入这一行:
的RewriteBase /
在
RewriteEngine叙述在
在3 .htaccess文件
in the 3 .htaccess files
这篇关于CakePHP的CSS文件不加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!