Business People Club

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

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

Your comment

Your name to display :
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

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,510 views
0 like 0 dislike
0 comments 107 views
0 like 0 dislike
0 comments 365 views
0 like 0 dislike
0 comments 251 views
0 like 0 dislike
0 comments 233 views
Connect with us:
...