Is it possible that it redirects when someone writes a wrong url?

This topic has 2 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Tony Rodriguez

  • Avatar: mktnegocios
    mktnegocios
    Participant
    May 2, 2023 at 19:53

    Is it possible that it redirects when someone writes a wrong url? Example: https://purostock.ar/producto/freidora-morelli-mod-f15dfddf/ instead of marking a 404 error for a non-existent page, go to send the visitor to the main page?

    Please, contact administrator
    for this information.
    1 Answer
    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.