CakePHP project gives an error

I’ve already a project in CakePHP which is running on the server but I’ve installed it locally on wamp server then it gives an error like internal server error and page not found.
Live URL:

You will need to investigate the server logs to find the cause of that. An internal server error can be caused by literally anything!

the first thing to check isyout .htaccess files if RewriteBase is set and is correct.

i have check htaccess but

Yes looks like something wrong with your Apache/htaccess as your URL shouldn’t really have “app/webroot”:

Should be either (apache doc root, no wamp apache alias):

or (wamp apache alias dir, mod rewrite with rewrite base):
this is where you have multiple apps on the server using subdirectory/alias instead of subdomains.

RewriteEngine On
RewriteBase /myapp
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

thank you for the support.

I’ve uploaded source code on a new testing server but still getting an error to access administration.
New server URL:

Error throw on a new testing server

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Please find attached below image for my app directory structure.

I’ve put following .htaccess file for different folders.

1- cakephp root/ folder .htaccess
RewriteEngine on
RewriteBase /cakephp/
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]

2- cakephp/app/ folder .htaccess
RewriteEngine on
RewriteBase /cakephp/app/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]

3- app/webroot/ folder .htaccess
RewriteEngine On
RewriteBase /cakephp/app/webroot/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

4- app/webroot/dicu_admin .htaccess
RewriteEngine On
RewriteBase /cakephp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !..(ico|gif|jpg|jpeg|png)
RewriteRule ^([^?]
) index.php?route=$1 [L,QSA]