Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
406 views
in Plugins by

1 Answer

+1 vote
by
You can use custom page, add search bar additional info etc on 404 page

https://github.com/ProThoughts/q2a-custom-404-page

demo

http://q2a-dev.prothoughts.com/404error
by
Thank you
But I want redirect 404 page visitor to the home page
redirect 301
by
try adding below code to your .htaccess file.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . / [L,R=301]

 

You need to make sure apache has 'mod rewrite' on and most web hosts do have this on by default otherwise you can ask your hosting provider if it's not working. This code will redirect all missing pages to the homepage however if you want to redirect to another page instead just replace the slash / in the final line with your web page.
by
Thank yoooooou
...