Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • If cakephp not cofigured properly

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 222
    Comment on it

    If Cakephp throwing an error:- URL rewriting is not properly configured on your server.

    To fix this issue follow below steps:

    1. 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>
    
    1. 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>
    
    1. 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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: