Reply 355225 to: Is it possible that it redirects when someone writes a wrong url?

Avatar: Tony Rodriguez
Tony Rodriguez
Support staff
May 3, 2023 at 07:39

Hello, @mktnegocios,

Yes, it is possible to redirect visitors to the main page of your website when they enter a wrong URL or when they encounter a 404 error page. You can achieve this by setting up a custom redirect using a plugin or by modifying your website’s .htaccess file.

You can modify your website’s .htaccess file to create a redirect rule. To do this, you will need to access your website’s root directory using an FTP client or file manager. Then, open the .htaccess file and add a redirect rule using the following code:

ErrorDocument 404 http://example.com/

Replace “http://example.com/” with the URL of the page you want to redirect visitors to. Save the changes to the .htaccess file, and the redirect rule will be applied.

Kind Regards,
8theme team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.