Sorry if this is something stupid I'm doing, but when I create an .htaccess I get an error "An error has occurred. 0 syntax error, unexpected '|', expecting variable (T_VARIABLE)".
I saw some explanations about this being caused by an old PHP version, but I'm using version 8.1. I tried switching to 8.2 but got the same error.