How to redirect 404 page error page visitor to the home page of my site?

0 like 0 dislike
1,007 views
in Articles - HairySeahorse
I want redirect 404 page visitor to the home page of my website

Please log in or register to reply to this post.

1 Comment

0 like 0 dislike
commented - UncleRhino
Go your web host control panel and look for htaccess file in your domain root folder.

try adding below code to your .htaccess file.

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

Above code would redirect any 404 error to your website homepage.

Related posts

0 like 0 dislike
0 comments 1,844 views
0 like 0 dislike
0 comments 372 views
0 like 0 dislike
0 comments 661 views
0 like 0 dislike
0 comments 568 views
0 like 0 dislike
0 comments 552 views

55,458 posts

595 comments

2 comments

502,901 users

Connect with us:
...