The teacher can access it by typing www.edu.com/index/user/login, but my access is www.edu.com/index.php/index/user/login, but after opening it, the content of the index.html template is still displayed.
薛敬
薛敬 2020-03-16 16:49:34
0
5
2959

The teacher enters www.edu.com/index/user/login to access, and my access is www.edu.com/index.php/index/user/login, but after opening it, the index.html template is still displayed. Content

薛敬
薛敬

reply all(3)
别被风景迷了眼

Are you using the tp framework?

  • reply Yes, I am using tp5. I want to remove index.php from the url.
    薛敬 author 2020-03-18 11:02:57
  • reply Create a new .htaccess file in the root directory and fill in the following content Options FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
    别被风景迷了眼 author 2020-03-18 11:28:23
Sanys

Your www.edu.com/index.php/index/user/login is accessing the index controller. According to you, you need to access the user controller.

Sanys

Try visiting www.edu.com/index.php/user/login

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template