A
A
Almik Oh! Give me a guitar2014-11-07 12:16:04
Yii
Almik Oh! Give me a guitar, 2014-11-07 12:16:04

How to remove index.php in rest api ?

Hello!
There is a rest api. For example example.com/index.php/users/342432
I need to do this example.com/users/342432
Site on yii 1.1.5 Sincerely
,
Almik

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fyodor Dostoyevsky, 2014-11-07
@frops

Write in the config:

'components'=>array(
        ...
        'urlManager'=>array(
            'showScriptName'=>false,
            ...
        )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question