Thinkphp Portal is

Source: Internet
Author: User
The Thinkphp Portal is the php thinkphp url Portal.

Why does Thinkphp automatically point to the entry url after I enter localhost?

For example, m = public? M = login
Or Index. php? M = index
And so on.

Where is the configuration or the default entry?


Reply to discussion (solution)

Put TP directly under htdocs?
Does not have. htaccess by default? It defines index. php.

This is usually index. php. you can check it out.

Create the Tp directory and the Action folder under lib. tp is the controller that calls the corresponding html file in the IndexAction. class. php file.
You can also use the config. php configuration entry file.

The entry is index. php.

M = public? M = login
This can be changed. it is called the pseudo-static url. The entry is index. php. you are advised to go online and find a tutorial on this instance.

You can configure the routing rules on your config. php page.

M = public? M = login
This can be changed. it is called the pseudo-static url. The entry is index. php. you are advised to go online and find a tutorial on this instance.
I always think: public = login is better.

Index. php

The portal is not determined by ThinkPHP. what is the name of your portal file,
The front-end usually uses index. php and admin. php.
Note: generally, index. php index.html index. aspx index. jsp default. aspx is used by default on web servers.
If no file is specified, for example, http: // localhost, the default file order set by the web server is found one by one. If no file is found, the system displays the list if the display directory is enabled.
The default file sequence can be modified, for example,. htaccess files.

 
  RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)\.html$ index.php/$1 [QSA,PT,L]
 
 
   deny from all 
 DirectoryIndex home.php index.php index.asp index.shtml index.htm index.jsp index.aspx

The default file is home. php.

Default module,
Configuration in config. php

I'm dizzy,
What are the answers above ,,
It is obviously not a rewrite.
The default value is index. php. This is set by apache or nginx.
Then the routing module (route) will be loaded ),
By default, the routing module will introduce the default instantiated action.

This depends on your routing rule

Start with index. php and find a file for route control. follow the file called by the file to learn more quickly and learn more deeply.

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.