如何将网站上不存在的链接重定向回主页 [英] how to redirect non existent link on website back to the home page
本文介绍了如何将网站上不存在的链接重定向回主页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题是如何将我网站上任何不存在的链接重定向到主页。例如;想象一下,如果用户在 http中输入了一个名为pets的网页(http://mywebsite.com/pets) ://mywebsite.com/petsd ,我想让用户重定向到主页。任何人都知道如何做到这一点?谢谢。
my question is how to redirect any non existent link on my website back to the home page. For example; imagine i have a page called "pets" on my site (http://mywebsite.com/pets) if a user types in http://mywebsite.com/petsd by accident, I want the user to be redirected to the home page. Anyone know how this can be done? Thanks.
推荐答案
这篇关于如何将网站上不存在的链接重定向回主页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文