//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!
Read More:
- How to solve Magento 500 internal server errors
- Error during PHP installation and configuration error: off_t undefined; check your library configuration
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- ThinkPHP interface cross domain request error [Solved]
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- [Solved] yii error: Setting unknown property: yii\console\Request: :cookieValidationKey
- PHP large file upload error 413: request entity too large [How to Solve]
- How to Hide index.php
- Using $this when not in object context in (How to Fix)
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- [Solved] Laravel Upload Files Verificate Error: The file failed to upload.
- [Solved] PHPMailer Error: SMTP ERROR: Failed to connect to server: (0)
- [Solved] PHPMailer Failed to Send Email: SMTP Error: Could not connect to SMTP host.
- [PHP] Array to string conversion error when sending data in post
- php Error: mail() Failed to connect to mailserver at “localhost” port 25
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- How to Solve phpExcel Error: ERR_INVALID_RESPONSE
- 404 solution for WordPress Chinese tag
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- PHP: How to parse MHT file into HTML