Skip to content

Commit 23d118a

Browse files
committed
Update README.md
1 parent a5c5efa commit 23d118a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
# yii2-initial-config
22
Yii2 Initial Configuration for advanced template
33

4-
<h2>Change backend to admin</h2>
4+
<h3>Step - 1: Change backend to admin</h3>
55
1. change the directory <strong>backend</strong>
66
2. change the <strong>common/config/bootstrap.php</strong> file as https://github.com/streetcoder/yii2-initial-config/blob/master/common/config/bootstrap.php
77

8+
<h3>Step - 2: Create .htaccess file in root</h3>
9+
1. Create <strong>.htaccess</strong> in root and write on it as https://github.com/streetcoder/yii2-initial-config/blob/master/.htaccess
10+
11+
<h3>Step - 3: Modify config file in admin (backend) folder</h3>
12+
1. Change the file <strong>/admin/config/main.php</strong> as https://github.com/streetcoder/yii2-initial-config/blob/master/admin/config/main.php
13+
14+
<h3>Step - 4: Modify config file in frontend folder</h3>
15+
1. Change the file <strong>/frontend/config/main.php</strong> as https://github.com/streetcoder/yii2-initial-config/blob/master/frontend/config/main.php
16+
17+
<h3>Step - 5: Create .htaccess file in frontend/web/ and backend/web/</h3>
18+
1. put this file: https://github.com/streetcoder/yii2-initial-config/blob/master/frontend/web/.htaccess in <strong>/frontend/web</strong> and <strong>backend/web</strong> directory
19+
20+
You can access frontend and backend as :
21+
22+
frontend: http://localhost/your_directory/site/index
23+
backend: http://localhost/your_directory/admin/site/index
824

0 commit comments

Comments
 (0)