R
R
Roman2014-12-10 18:12:40
Yii
Roman, 2014-12-10 18:12:40

Yii2 How to make Pretty URLs Exclusively via htaccess?

I'm interested in how you can do it (without setting up NGNIX APACE) And only through htaccess
The ability to open a site without /web/ (parts in the address).
And in the Advanced version (without frontend ).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bay, 2014-12-10
@kawabanga

you can remove the web like this:
RewriteRule ^(.*)\?*$ web/index.php/$1 [L,QSA]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question