これは以前に回答されたことは知っていますが、.htaccess ファイルの設計は非常に個人的なものであり、他の投稿で見つかった修正を .htaccess ファイルに適用するのが難しいことがわかりました。この .htaccess は webdir のルートにあり、次のエラーが発生します。
"[error] [client 1.1.1.1] 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".
誰かが私の .htaccess の欠陥を指摘してくれたら、とても感謝しています! ありがとうございました!
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(.*)\. (gif|jpeg|jpg|png|css|js|pdf|doc|xml|ico|html|php|json|swf|mp3|ogg|wav)$
RewriteCond %{REQUEST_URI} !(service)
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]
RewriteRule ^[^/.]*/(.*) app/$1 [L]