Home  >  Q&A  >  body text

Enter http://localhost/index to directly enter the website backend. How to change /index to another entry?

THINKPHP

Enter http://localhost/index to directly enter the website backend. How to change /index to another entry?

How to modify the backend login address, which is now the default For example: http://www.baidu.com/index


will directly enter the background. How can I change the index to something else and enter the background? Modify it?

、海洋、海洋1934 days ago1648

reply all(4)I'll reply

  • oO小明.同学Oo

    oO小明.同学Oo2019-06-11 14:53:18

    1. Find the index directory of the module you access in the background and change it to xx (the directory you want)

    2. Jump through the routing configuration of tp

    3. Redirect ( But the url is still the same)

    reply
    0
  • 、海洋

    Can I close the background if it is not in use? Just add index to the disabled module. Is it okay to clear it when using it, that is, open the background again, and then close it after use? No impact, right?

    、海洋 · 2019-06-11 14:55:28
  • ytrg

    ytrg2019-06-09 08:57:34

    You can enter indenx.php without writing it, but for others, you need to write the directory name, ×××/××x can be entered, and there are corresponding files in the corresponding directories. Which directory depends on the virtual directory you configured?

    reply
    0
  • 、海洋

    What I mean is how to change the index to enter the backend. Now I directly enter http://xxx.com/index to enter the backend. For example, I want to change it to http://xxx.com/index123456 and directly enter the background. How to change it? Instead of entering index Enter index123456 to change the background address.

    、海洋 · 2019-06-09 13:34:26
  • Cancelreply