i have laravel project on server public_html folder
i have another domain folder inside my public_html folder that also have laravel project below is my directory structure
public_html/
├── app/ # Existing Laravel application files ├── bootstrap/ ├── etc/ ├── sub_laravel_project/ # New Laravel project directory │ ├── app/ │ ├── bootstrap/ │ ├── config/ │ ├── database/ │ ├── public/ # Public directory for the new Laravel project │ ├── artisan # Laravel artisan CLI │ └── composer.json # Composer configuration ├── vendor/ # Existing Laravel vendor directory ├── .env # Existing Laravel environment file ├── .env.example ├── artisan # Existing Laravel artisan CLI ├── composer.json # Existing Laravel composer file
i was unable to access my sub_laravel_project than i updated .htaccess file inside sub_laravel_project like below
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.myrootdomain.com/$1 [R,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdirectory
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.php [L]
</IfModule>
RewriteCond %{HTTP_HOST} ^myrootdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.myrootdomain.com$
RewriteRule ^/?$ "https://www.myrootdomain.com/" [R=301,L]
now i am able to access sub_laravel_project but my assets are not working
when i try follwoing i am able to access assets
https://sub_laravel_project_domain.com/public/images/logo.png
but withoud public i am unable to access i think i have to update htaccess pelase help thanks
tried answers on stackoverflow but no luck