search

Home  >  Q&A  >  body text

ThinkPhp5.1 adds an error when accessing without adding index.php

In the background of production, if you do not add Index.php during access, and use {:url('welcome')} to bind the access path, an error will be reported when accessing. How to solve it:

360截图1625111698142150.png

为梦兼程为梦兼程2048 days ago1196

reply all(2)I'll reply

  • 学长在路上

    学长在路上2019-04-22 18:27:41

    Open the specific error message in the configuration file

    reply
    0
  • 为梦兼程

    All debugging is on. If you add index.php, everything will be normal. If you don’t add it, an error will be reported.

    为梦兼程 · 2019-04-26 11:11:50
  • Cancelreply