There is a root site www, in which lies. Htaccess
Options -Indexes RewriteEngine On RewriteRule ^(.*)$ public/$1 [L,QSA]
This code redirects requests to the www / public directory, where, in turn, is .htaccess, in which:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
everything is redirected to index.php
And, as it were, everything works fine until we enter in the address bar
www. [name] .com / public
A direct appeal to index.php occurs and the public is already perceived not as a request, but as a transition to a directory. Help solve this problem. If something is not clearly described, - say, I will try to clarify.