About htaccess in the project route of cakePHP 3.4.5

Asked 1 years ago, Updated 1 years ago, 94 views

We introduced cakePHP to Sakura VPS using composer.
However, it doesn't show up no matter how you do it.
InternalServerError

Request exceeded the limit of 10 internal redirects due to provable configuration error.Use'LimitInternalRecursion' to increase the limit if necessary.Use'LogLevel debug' to get a backtrace.pr 

uri=/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/webroot/

Apparently, .htaccess is causing an infinite loop, but I'm not sure.

/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule^$webroot/[L]
    RewriteRule(*)webroot/$1[L]
</IfModule>

/webroot/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    US>RewriteCon%{REQUEST_FILENAME}!-f
    RewriteRule^index.php[L]
</IfModule>

Adding [RewriteBase/] here did not change the state.

Last

of /.htaccess
 RewriteRule(*)webroot/$1[L]

The first screen appears when you comment.

However, the routing configuration does not seem to take effect.

I would appreciate it if you could help me solve the same problem or if you understand it.

cakephp

2022-09-30 21:23

2 Answers

First of all, it was solved by dropping the version to 3.3.6.

--From the questioner's comment.


2022-09-30 21:23

It is also possible that the intl module is not installed.


2022-09-30 21:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.