A
A
Alexander2015-06-02 10:22:08
Yii
Alexander, 2015-06-02 10:22:08

How to remove frontend/web/index.php from url in yii2 advanced?

test.local/frontend/web/index.php/site/about want to hide frontend/web/index.php , how to do it ?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
Crash, 2015-06-02
@Bandicoot

In config web.php folder

'components' => [
   'urlManager' => [
       'showScriptName' => false  
   ]
]

The rest is configured via .htaccess, google

A
Alexey Alekseev, 2015-06-02
@greenkaktusx

On setting up htaccess for Yii2 (in the case of Apache) I answered you here - link .

B
Bulat Kamalov, 2016-11-06
@bultikk

onfor.info/yii2-kak-nastroit-htaccess-dlya-advance...

P
Papa, 2015-06-02
Stifflera @PapaStifflera

Set the webserver to /frontend/web as document root.

K
Kirill Arutyunov, 2015-06-02
@arutyunov

Yii2: how to set DocumentRoot?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question