M
M
Mikhail Shatilov2014-10-21 20:17:22
Yii
Mikhail Shatilov, 2014-10-21 20:17:22

Why don't rules work in .htaccess (how to compose RewriteRule )?

Yii2: There is a FlightsApiController->actionSearchFlights()
.htaccess controller:

RewriteRule ^([^/].*)?$ /app/frontend/web/$1 [L,PT]

domain.ru works
domain.ru/flightsapi/search-flights doesn't work
The funny thing is that everything works as it should on LAN.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Shatilov, 2014-10-21
@iproger

Understood, you need to request the controller asflights-api

F
FanatPHP, 2014-10-21
@FanatPHP

Once again, users can hardly tell the difference between a local web server configuration file and a specific module configuration problem.
From here we see a question that contradicts its name: by the title, we will rightly decide that no directives work at all because of AllowOverride, and in the body there will be a question on compiling rules for mod-rewrite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question