When the pseudo-static function of rewrite is enabled, the homepage can be accessed, and when the inside page is accessed, it prompts: "No input file specified."
The reason is that the PHP used is fast_cgi mode, and in some cases, can not correctly identify the errors caused by path_info, WordPress pseudo-Static also has the same problem.
WordPress program default. htaccess inside the rules:
Rewriteengine Onrewritebase/rewritecond%{request_filename}!-frewritecond%{request_filename}!-dRewriteRule ^ (. *) $ /index.php/$1 [L]
"No input file specified." is not caused by a valid path to the files.
Modify the pseudo-static rule as follows:
Rewriteengine Onrewritebase/rewritecond%{request_filename}!-frewritecond%{request_filename}!-dRewriteRule ^ (. *) $ /index.php?/$1 [L]
Have you found any difference?
In fact, there's a "/$1" in front of the regular result. , the problem will be solved with it.
Apache server appears no input file specified perfect solution