This article introduces to you about thinkphp5.x php5.6.27-nts and Apache through the URL rewrite to hide the entry file index.php, has a certain reference value, the need for friends can refer to.
Let's take a look at the official manual for a reference to the "url rewrite":
You can hide the app's portal file via URL rewrite
index.php , Apache Configuration reference:
1. http.conf configuration file Loading mod_rewrite.so module
2. Change None in allowoverride Node to all
3, save the following content as. htaccess Place the portal file in the sibling directory
<ifmodule mod_rewrite.c>options +followsymlinks-multiviewsrewriteengine onRewriteCond%{REQUEST_FILENAME}!- Drewritecond%{request_filename}!-frewriterule ^ (. *) $ index.php?/$1 [qsa,pt,l]</ifmodule>
Finally, I completed the redemption by modifying the. htaccess file in the sibling directory of the thinkphp portal file.
The above can resolve the presence of No input file specified error.