I wanna remove .htaccess

when i type my site and then something random it goes to infinityfree/errors/ but i dont want that i just want that it says 404 not found not that i can’t edit and delete it

Hi
you cannot delete the default .htaccess but you can override its settings by doing this:

Please use monstaFTP from client area and create/edit .htaccess file in htdocs folder of your sub/domain

edit if needed to look like this:

# error redirect
ErrorDocument 404 http://mydomain/404.html

* of course also for other error codes if you have it
the error pages with the same names must exist
and if they are in a some subdirectory than edit the PATH (in example) to reflect the real location
make sure that the address of these pages is absolute (start with http/s)
and not relative

because if is relative…
when someone comes to the subfolder of the subfolder and ask something that does not exist or does not have permission it will appear infinityfree error pages not your custom

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.