//httpd error log error:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase
the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://127.0.0.1/MyProject/login/userLogin
Most of the answers on the Internet are about. Htaccess, but I don’t think there’s anything wrong with local HTaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ apg/public/ [L]
RewriteRule (.*) apg/public/$1 [L]
</IfModule>
The url is correct
http://127.0.0.1/MyProject/login/userLogin
But the page doesn’t display the right content.
Let me see where the framework needs to be changed. I still think the framework hasn’t changed.
Solutions:
Later, I checked my collection.php, and there was an array in it, and I added the name of MyProject MyProject:
static private $ProjectsArray = array(
'project1',
'project2',
'project3',
'MyProject'
);
The problem solved! Check my localhost page again and you can visit my Project login page. The framework has been set up successfully!