B
B
balex7772019-11-08 11:14:31
Yii
balex777, 2019-11-08 11:14:31

Why in yii2 advanced API folder is not accessible by link?

I created an api folder using the backend folder, deleted everything unnecessary from the config, session cache, etc.
In general, I did everything according to this guide
In common/botstrap.php I registered an alias

Yii::setAlias('@api', dirname(dirname(__DIR__)) . '/api');

at the root in codeception.yml added api
include:
- common
- frontend
- backend
- api

at the root in . htaccess added

RewriteCond %{REQUEST_URI} ^/(api)
RewriteRule ^.*$ /api/web/index.php [L]

And finally 404 what could be the reason?
5dc523de6d3d6669229400.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question