Yesterday to the blog to a new space, resolved the domain name, today found that can ping, home can open, but click on the details of the page is found a blank page, only one line of words: No input file specified.
Online search for a while, there are various statements, can not be resolved. Later, we found a more successful solution by adding the following pseudo static rule:
Rewriteengine? On
rewritebase?/
rewritecond?%{request_filename}?! -F
rewritecond?%{request_filename}?! -D
rewriterule?^ (. *) $?/index.php?/$1? L]
And the above pseudo static code does not apply to my blog space, because I am the Nginx server, therefore needs to conform to the nginx under the pseudo static rule. Combined with the pseudo static characteristics of nginx, after modification, the final solution is to add the following pseudo static rules for the server:
if (!-e $request _filename) {
Rewrite ^ (. *) $/index.php?/$1 last;}
After the pseudo static rule is added correctly, the problem is resolved.
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.