在静态首页中,添加查询代码后,出现404错误,是什么原因,怎么处理?

难以揣摩 2021-02-23 1215浏览

首页插入的查询代码:

<form action="/search" method="get" style="margin:28px 0 0 20px;">
			<input type="text" name="q" value="${Param.q}" class="left search-input" style="width:380px;" autocomplete="off"/>
			<button type="submit" class="left" style="width:86px;height:34px;background:url(_files/img/search.png);border:0;"></button>
			<div class="clear"></div>
		</form>

查询页显示的提示

Not Found
The requested URL /search was not found on this server.

我是在本机上,作了一个首页模板,所有的效果都正常了,只有这个查询功能,怎么也实现不了

本机上我用的是http://192.168.0.99/index.html

404页面地址栏中只显示那个http://192.168.0.99/,以及那些错误提示信息

按理来说,应有一个search.jsp的文件啊,怎么下载的包里面就发现不了这个,实在让人困惑

我用的是护卫神·Apache大师,直接建站点,然后把程序布到建站点里的,你这儿不支持截图啊!

============查询页出现的错误提示代码图

===========静态首页(在护卫神站点目录下,生成静态页)

==========首页模页中的搜索代码(直接复制系统中带的查询表单代码)

评论 2021-02-23 修改 by support
我要评论
2 回答 查看所有回答

我来回答

请先登录再回答问题
点击查看大图插件