Thinkphp entrance is

Why I entered localhost, Thinkphp can automatically point to entrance URL

For example, m=public?m=login
Or Index.php?m=index
Wait

Where is the entrance is the default configuration, or?

Started by Edison at October 29, 2016 - 11:17 PM

Directly to the TP on the HtDocs.?
The default is not a.Htaccess? Inside the definition to the index.php

Posted by Lynn at November 04, 2016 - 12:08 AM

The general is the index.php, you may have a look

Posted by Alva at November 07, 2016 - 12:31 AM

Create a Tp directory under the Lib folder, Action, TP is the controller to call the corresponding HTML file in the IndexAction.class.php file.
Can also through the configuration file config.php file configuration entrance.

Posted by Bruce at November 15, 2016 - 12:45 AM

Entrance is index.php

Posted by Lucien at November 21, 2016 - 12:51 AM

m=public?m=login
This can be changed, the pseudo static url. Entrance is index.php, the proposed Internet to find a related example tutorial to see, so I can understand.

Posted by Bert at December 02, 2016 - 1:11 AM

In your config.php page to configure, configuration of the routing rules.

Posted by Johnny at December 06, 2016 - 1:16 AM

I always think: public=login is quite good.

Posted by Phil at December 09, 2016 - 1:26 AM

index.php

Posted by Adam at December 15, 2016 - 2:12 AM

Entrance is not decided by ThinkPHP, your name is entrance file name,
In general the prospects of using index.php admin.php background
Note: the general web server default index.php index.html index.aspx index.jsp default.aspx etc.
If you do not specify a file such as: http://localhost will be in accordance with the web server to set the default file sequence a find, 404 or the show opened it will display a list of directory not found
The default file sequence can be modified as a.Htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.html$ index.php/$1 [QSA,PT,L]
</IfModule>

<Files ~ "^.(htaccess|htpasswd)$"> 
deny from all 
</Files>
DirectoryIndex home.php index.php index.asp index.shtml index.htm index.jsp index.aspx


The modify the default file for the home.php (APACHE

Posted by Alina at December 23, 2016 - 2:57 AM

The default module, the default action.,
Config.php can be configured

Posted by Alina at January 04, 2017 - 3:03 AM

I halo,
All the above answer what ah, ,
Obviously not rewrite.
Usually the default is index.php. This is the Apache or nginx settings.
Then loads the routing module(route),
By default, the action routing module will introduce the instantiation of default settings

Posted by Upton at January 12, 2017 - 3:23 AM