If project is in subfolder folow this steps:
.htaccess in main folderRewriteEngine on
RewriteRule .* - [E=BASEDIR:/[SUB_FOLDER_NAME]/public_html]
RewriteRule ^(.*)$ %{ENV:BASEDIR}/$1 [L,QSA]\public_html\.htaccess# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /[SUB_FOLDER_NAME]/$1 [L,R=301]
# For localization urls
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{ENV:BASEDIR} ^/[SUB_FOLDER_NAME]/public_html$
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/(de|no|en)(/)? [NC]
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/_ignition
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/_debugbar
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/ckeditor
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/elfinder
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/laravel-websockets
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/public_html/broadcasting
RewriteRule ^(.*)$ /[SUB_FOLDER_NAME]/public_html/$1 [L,QSA,R=301]
# For localization urls
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{ENV:BASEDIR} !^/[SUB_FOLDER_NAME]/public_html$
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/(de|no|en)(/)? [NC]
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/_ignition
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/_debugbar
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/ckeditor
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/elfinder
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/laravel-websockets
RewriteCond %{REQUEST_URI} !^/[SUB_FOLDER_NAME]/broadcasting
RewriteRule ^(.*)$ /[SUB_FOLDER_NAME]/no/$1 [L,QSA,R=301]\project\.envASSET_URL=[ENV_APP_URL_VARIABLE]/[SUB_FOLDER_NAME]
APP_DIR=[SUB_FOLDER_NAME]