Home  >  Q&A  >  body text

The rewrite mode of the php toolbox fails under the combination of php7+apache

The rewrite mode of the php toolbox fails when combined with php7 apache. Index.php (entry file) must be added for correct access. What's going on?

冷笑浅兮冷笑浅兮2579 days ago1005

reply all(2)I'll reply

  • Day

    Day2017-10-23 09:05:27

    1. Check Apache's Vhsot file to see if the changed port is not 80. If not, you need to add a port after the domain name. 2. Check whether there is a php file in the directory managed by the site domain name. If not, it cannot be opened.

    reply
    0
  • 冷笑浅兮

    You can test it yourself. There are Apache rewrite files starting with index.php and .htac under the root directory of my virtual host mapping. The website port is port 80. I tried it, but I can only add an index.php/model/controller/method. . It is definitely a toolbox bug, and I checked the apache.conf configuration file and found that the rewritten module was uncommented. Could there be any other reason? I put the same code under XAMPP and paired it with a virtual host. The rewrite mode is completely effective. What do you think?

    冷笑浅兮 · 2017-11-12 23:12:07
  • Cancelreply