How to avoid redirects to infinityfree.net with error 404?

Is there any way to avoid redirects to infinityfree.net with error 404?
I’d like to use my own html file for any error.

For example:

mywebsite.epizy.com/non-existing-file
(it redirects to Suspected phishing site | Cloudflare)

Thanks.

Thats weird. For it it redirects to the 404 page I set.

@brandonlui19 said:
Thats weird. For it it redirects to the 404 page I set.

If you add /anything to your domain… it doesn’t redirect to Suspected phishing site | Cloudflare ?

Use .htaccess to redirect to your own error pahe
edit htdocs/.htaccess file
add these lines
ErrorDocument 404 /error.html
ErrorDocument 403 /error.html
where error.html is your error file obviously

@kitokun10 said:
Use .htaccess to redirect to your own error pahe
edit htdocs/.htaccess file
add these lines
ErrorDocument 404 /error.html
ErrorDocument 403 /error.html
where error.html is your error file obviously

It works! Thank you.

1 Like

Dear @Badchip ,
Theres a easy way to fix this,
On the control panel, theres a menu called Error Pages, click on it and you will see the configuration for error pages such as 404, 500, etc.
Do note that you need to setup a page on your website either Wordpress or what to handle the error.
Else if you choose to redirect them somewhere else, you might loose a customer.
Thats all it.

Thanks.

@PlanetGamingGG said:
Dear @Badchip ,
Theres a easy way to fix this,
On the control panel, theres a menu called Error Pages, click on it and you will see the configuration for error pages such as 404, 500, etc.
Do note that you need to setup a page on your website either Wordpress or what to handle the error.
Else if you choose to redirect them somewhere else, you might loose a customer.
Thats all it.

Thanks.

Good alternative. Thank you.