Business People Club

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

0 like 0 dislike
770 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,748 views
0 like 0 dislike
0 comments 291 views
0 like 0 dislike
0 comments 584 views
0 like 0 dislike
0 comments 470 views
0 like 0 dislike
0 comments 471 views
Connect with us:
...