Mautic redirects domain root to the sub-folder

Your software
My Mautic version is: 4.0
My PHP version is: 7.4.33
My Database type and version is: Mariadb

Your problem
My problem is:
I installed Mautic inside a folder called “mautic” on my website.
I can access it by going to:

Any idea how I can prevent this redirect of the root domain to a mautic directory?

Also, when I access my root domain using the IP address, it does not redirect.

Thanks

These errors are showing in the log:

Steps I have tried to fix the problem:

That is probably because of the apache configuration that ships with mautic. I am guessing you are using apache because .htaccess files are shiped with mautic core and by default its meant to run mautic on domain root. If you want to server it from sub folder you have to adjust the .htacces files (or any other web server ccnfig that you might have).

Yes, I was able to fix it.
I had to change the SSL Conf files to fix the issue.

Thanks