Jump to content

Redirect All 404 Not Found Pages To Homepage


Recommended Posts

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:

  window.location = '/';

This will continue to serve 404 error to bots, while browser users will be redirected to index page.

Link to comment
Share on other sites

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..



Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...