Business People Club

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

0 like 0 dislike
740 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,725 views
0 like 0 dislike
0 comments 268 views
0 like 0 dislike
0 comments 562 views
0 like 0 dislike
0 comments 447 views
0 like 0 dislike
0 comments 445 views
Connect with us:
...