Why can’t index.php be omitted in domain name access? For example: http://tp5.com/index.php/index/index/index. If index.php is omitted, it cannot be accessed. How to modify it?
Mayukiii733 2019-12-20 23:09:09
Change the last line RewriteRule in the .htaccess file in the Public folder to RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] to hide the entry file
寻觅 beyond2018-03-04 14:36:05
As mentioned on the first floor, if you want to omit index.php, you need to configure url rewriting and add .htaccess
寻觅 beyond2018-03-04 14:34:26
This is the reason for the framework. index.php is the entry file. As you can understand from the name, all requests to this website must first go through this script
雕花笼2018-03-02 14:30:40
Is the index file index.php? If not, check whether it exists and its priority.
During routing processing, when $_SERVER['PATHINFO'] does not exist, are the default controller set to index and the default method set to index?
自由飞翔2018-03-02 14:02:12
Through url rewriting, the server usually needs to enable the url_rewrite module to support