Home  >  Q&A  >  body text

Create a new index folder, and then put the controller and file index.php into the index folder. Modify the htaccess file for extended access. But when accessing, it prompts a page error! Please try again later. The PHP version is normal. Please give me some answers. Thank you.

Create a new index folder, and then put the controller and file index.php into the index folder. Modify the htaccess file for extended access. But when accessing, it prompts a page error! Please try again later. The PHP version is normal, please give me the answer, thank you

A 阿拉丁A 阿拉丁1814 days ago1519

reply all(5)I'll reply

  • phpcn_u89397

    phpcn_u893972020-05-21 14:29:38

    Solve it? I still can't. Running composer require topthink/think-multi-app succeeds, but still fails. Always the controller does not exist.

    reply
    0
  • phpcn_u89397

    Solved, the multi-application mode was not enabled in the tp project just now.

    phpcn_u89397 · 2020-05-21 17:33:43
    k

    Thank you, I also solved it according to your suggestion

    k · 2020-06-21 18:31:49
  • lk

    lk2019-11-30 13:40:55

    I also studied for a long time before getting it right. First of all, if a 404 error is reported, nginx needs to support pathinfo mode. Then you also need thinkphp to enable multi-application mode composer require topthink/think-multi-app so as to meet the operation of the video tutorial

    reply
    0
  • A 阿拉丁

    grateful

    A 阿拉丁 · 2019-12-01 16:48:12
  • Cancelreply