CSS and JS not loading cakephp 3
question - css and js not laoding in cakephp 3 or cakephp 3 css not workingSolution
Step 1-
if your js and css are not loading then open your .htaccess file of root directory (newcake) and if .htaccess file not displaying press ctrl+h to show hidden files and open your .htaccess file and paste this code
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
Step 2-
Now open your webroot htaccess file (yourcakephpprojectfolder/webroot)
and paste this code into it
CakePHP webroot directory -
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
now refresh your page and see now your css and js are working..Thank You
Related Posts --
How to use html template into cakephp 3
Create a cakephp 3 template from html template
How to solve css and js not loading problem in 2 steps
viebelPnau-pa Tim Gray https://wakelet.com/wake/vf_bfUGkSOKSiy5fNV6Wh
ReplyDeletetamdroogahve
serfiFsauku Angela Jiang Nulled
ReplyDeleteSpeedify
Winamp Pro
wheelnoughpulvi