1

I am using Yii2 and the extension localurls

I have followed the instructions but it seems the language is appended to the end of the URLs instead of before the script name:

http://localhost/yii/advanced/frontend/web/index.php/en

Also, I have tried to disable the option "showScriptName" and the URL:

http://localhost/yii/advanced/frontend/web/en

is not found -> 404 not found. Why so?

Thank you

topher
  • 14,790
  • 7
  • 54
  • 70
MeV
  • 3,761
  • 11
  • 45
  • 78

1 Answers1

1

You should enable pretty urls.

 ...
'urlManager' => [
    ...
    'enablePrettyUrl' => true,
    ...
]
...

You should also have correct rewrite part in your web server config.

StalkAlex
  • 743
  • 7
  • 16