Home  >  Q&A  >  body text

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.

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

薛敬薛敬1700 days ago2936

reply all(5)I'll reply

  • 别被风景迷了眼

    别被风景迷了眼2020-03-18 11:02:11

    Are you using the tp framework?

    reply
    0
  • 薛敬

    Yes, I am using tp5. I want to remove index.php from the url.

    薛敬 · 2020-03-18 11:02:57
    别被风景迷了眼

    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]

    别被风景迷了眼 · 2020-03-18 11:28:23
  • Sanys

    Sanys2020-03-17 16:49:47

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

    reply
    0
  • Sanys

    Sanys2020-03-17 16:49:15

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

    reply
    0
  • Cancelreply