解决 WordPress 报错提示 No input file specified.

本篇文章 解决 WordPress 提示 No input file specified.

刚刚发现,WordPress分类 http://www.blyoo.com/wordpress

点击,下一页,到第二页,直接 来了句 No input file specified.

一开始,以为固定连接问题,重新保存了一下,然并卵用

词典翻译了一下 No input file specified. 没有指定输入文件。就是说没有找到文件呗。突然想起了,WordPress配置有个WordPress目录重写,怀疑跟我的分类WordPress冲突了,



就是这玩意,圈里的,

解决办法呢,
以nginx系统,我是Nginx,就是在那个后面加个英文的问号? ,我的是一级目录下,这个可能只适合一级目录下的,。然后重启Nginx,我也是猜的,但是就把这个问题解决了。就不会报错了提示没有指定输入文件。No input file specified.

或者就不要用跟WordPress有关的分类别名和页面别名和标签别名,反正不要使用WordPress别名命名,由于我这已经建了很久了,没法改成其他的,不然就会影响很多东西,,,

以下内容与上文无关

也把原配置文件,发出来吧,网上都有的,这也是新手问的最多的问题吧,这个是用于WordPress配置Nginx的伪静态文件,使用方法呢就是,一个在Nginx下的WordPress新站,nginx.conf 文件里加上下面这个,或者其他,有的Linux控制面板不一样例如我的就是新建一个 其实名字随便.conf文件,把下面代码放进去然后保存,放到服务器,具体目录,各个面板不一样。。。


location / {
	        index index.html index.php;
	        if (-f $request_filename/index.html){
	            rewrite (.*) $1/index.html break;
	        }
	        if (-f $request_filename/index.php){
	            rewrite (.*) $1/index.php;
	        }
	        if (!-f $request_filename){
	            rewrite (.*) /index.php;
	        }
	    }
location /wordpress/ {
	        index index.html index.php;
	        if (-f $request_filename/index.html){
	            rewrite (.*) $1/index.html break;
	        }
	        if (-f $request_filename/index.php){
	            rewrite (.*) $1/index.php;
	        }
	        if (!-f $request_filename){
	            rewrite (.*) /wordpress/index.php;
	        }
	    }
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注




Enter Captcha Here :