drayarms Posted January 9, 2012 Share Posted January 9, 2012 Hello, I never really gave a serious thought to the above question until now that I'm trying to actually launch a live site. Well I'm sure most of you are familiar with this situation, where a user my enter a wrong, non existent url, whose root happens to be your domain name. For example, instead of entering domain.com/greetings, the user may wrongly type domain.com/grewtings . How can I make my site to redirect such erroneous urls to my homepage, instead of to my webhost's homepage with an error message? Appreciate all answers. Link to comment https://forums.phpfreaks.com/topic/254673-need-to-avoid-redirect-to-webhost-homepage/ Share on other sites More sharing options...
Jeffro Posted January 9, 2012 Share Posted January 9, 2012 Create a 404 page. http://www.webweaver.nu/html-tips/custom-404.shtml Link to comment https://forums.phpfreaks.com/topic/254673-need-to-avoid-redirect-to-webhost-homepage/#findComment-1305899 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.