如何将网站上不存在的链接重定向回主页
问题描述:
我的问题是如何将我网站上任何不存在的链接重定向到主页。例如;想象一下,如果用户在 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.
答