检查搜索到的URL是否存在 [英] Check whether the searched url exists

查看:92
本文介绍了检查搜索到的URL是否存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上创建了一个搜索按钮.如果要搜索的产品用户存在,则将其定向到该页面,但如果不存在,则给出页面错误.
如何避免此页面错误.请提出建议!

希望我很清楚.

I have created a search button on my website. If the product user is searching for exists, it is directed to that page but if it doesn''t exists it is giving page error.
how to avoid this page error. Please suggest!

I hope, I am clear.

推荐答案


这篇关于检查搜索到的URL是否存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆