.htaccess

Hello, I changed the error pages but I’m looking at .htaccess (not in htdocs) there are still infinityfree error pages. If I replace them with my own error pages, would it cause any problem?
##################################################

DO NOT EDIT THIS FILE DIRECTLY

Create a new .htaccess file in your htdocs

directory (or example.com/htdocs/ directory)

to add your own rules or override these rules.

##################################################

DirectoryIndex index.php index.html index.htm index2.html

ErrorDocument 400 https://infinityfree.net/errors/400/
ErrorDocument 401 https://infinityfree.net/errors/401/
ErrorDocument 403 https://infinityfree.net/errors/403/
ErrorDocument 404 https://infinityfree.net/errors/404/
ErrorDocument 500 https://infinityfree.net/errors/500/
ErrorDocument 503 https://infinityfree.net/errors/503/ i will change these url

n o as far as i know

error pages in control panel

1 Like

sometimes that doesnt work

It worked for me

yeah keyword being sometimes

If create a .htaccess file in htdocs, and add your own ErrorDocument(s) it will overwrite the default ones set to InfinityFree in the root directory.

5 Likes