If Cakephp throwing an error:- URL rewriting is not properly configured on your server.
To fix this issue follow below steps:
Check .htaccess files in root directory
Let say you have directory with the name of myproject
then check .htaccess file in myproject location
and place this code--
<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</ifmodule>
- Check .htaccess in app folder e.g myproject/app/
if find then past this code else create file and place this code
<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</ifmodule>
- Check .htaccess in webroot folder e.g myproject/app/webroot/
if find then past this code else create file and place this code
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</ifmodule>
0 Comment(s)