snqke Posted February 27 Share Posted February 27 Hello everyone, I want to redirect all 404 not found pages to my home page can we do this on KVS script ? Thanks, Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 27 Share Posted February 27 The best way to do this is to find where this error page can be edited in litespeed and added the following code under its head: <script> window.location = '/'; </script> This will continue to serve 404 error to bots, while browser users will be redirected to index page. Quote Link to comment Share on other sites More sharing options...
snqke Posted February 27 Author Share Posted February 27 i want it to all 404 pages , not a specific page Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 27 Share Posted February 27 It looks like you web server is using some predefined HTML file for showing 404 errors, like the one you attached in screenshot. You need to edit this file, it is displayed for all 404 pages. Quote Link to comment Share on other sites More sharing options...
snqke Posted February 27 Author Share Posted February 27 Thanks for your help, BTW i have website that have webp configured correctly but the images link still .jpg and not webp i think after webp format configuration it will be with webp extension.. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted February 28 Share Posted February 28 No, due to technical restrictions in KVS code it is still using JPG file extension for WebP images, but this doesn't matter in any way. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.