There is a site on which the api logic is registered in one large system, and frontend in another. The architecture is such
--api ---index.php ---.htaccess --admin ---index.php ---.htaccess --frontend ---index.php ---.htaccess .htaccess Now, depending on the request, it is necessary that it redirects to where it should be, for example:
site.com на frontend site.com/admin на admin site.com/api на api Help please set up the .htaccess file.
Thank!