AllowOverride All not working

Hi, i have a problem with AllowOverride All, i added this on /etc/apache2/apache2.conf but does not seem to work.

My website is working fine but my wordpress plugin for webp images gives this error:

“.htaccess rewrite rules - we’ve detected that .htaccess write rules are not executed on your Apache server, this can be because the server is not configured correctly for using .htaccess file from custom locations.”

And it won’t work until AllowOverride All works. I’m new to HestiaCP coming from Cpanel, and i did not had this problem before. Is anything thatt i did not do/see?

Thanks.

edit: the guide says to edit /etc/apache2/sites-available/example.com.conf but i dont have a example.com.conf for my website

Yes, it is in/home/your website directory/conf

Nginx handles webp and other images

Is already added and still not working, maybe is in nginx conf like @eris said.

Nginx is new to me, and from what i’ve searched on google there is no alternative for AllowOverride in nginx, but maybe i’m wrong.