PHPCMS easy way to modify the background path

Source: Internet
Author: User
: This article describes how to modify the background path of PHPCMS. For more information about PHP tutorials, see. I have found many ways to modify the background path of phpcms on the Internet, but it is too complicated (personal feeling). I finally found a relatively simple modification method. I would like to share with you here, hope to learn from each other.

Step 1:
Create a folder in the root directory of the website, and then enter the background logon interface through this folder, so the folder name should be a name that is not easy to guess. Here is a demo. I will use adminweb. Next, create a new file index. php in this folder with the following content:

 

Step 2:
Create a new file MY_index.php in the phpcms/modules/admin/folder with the following content:

  

In this way, it only takes two places to modify it. you do not need to take so many steps, and the website background can only be accessed through/adminweb, so that it is not easy to find your background Portal, note that if you log on with/adminweb. php

The above describes the simple method for modifying the background path of PHPCMS, including some content. I hope to help some friends who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.